当前位置:网站首页>[tutorial 19 of trio basic from introduction to proficiency] detailed introduction of trio as a slave station connecting to the third-party bus (anybus PROFIBUS DP...)
[tutorial 19 of trio basic from introduction to proficiency] detailed introduction of trio as a slave station connecting to the third-party bus (anybus PROFIBUS DP...)
2022-07-05 08:03:00 【Changjiang houlang blog】
In practice , It is often necessary to put Trio Connect to the third-party bus as a slave . You may need to use the content of this article .
This article selects some special cases to introduce :
RS232/RS485 Bus :Modbus RTU、Hostlink、 be based on socket The way ,TRIO Support full duplex communication operation , The controller body has its own communication interface , No external interface required .
Ethernet Bus :TCP 、Ethernet/IP、UDP Full duplex communication operation 、 be based on socket The way , The controller body has its own communication interface , No external interface required .
CAN Bus :CANOPEN、DRIVENET、TrioBUS, The controller body has its own communication interface , No external interface required .
Anysbus Bus : need MC664/MC664X Anybus Sub modules support implementation ,
The supported modules are shown in the figure below :

As the interface of the terminal, there are Ethercat、RTEX、Sercos、SLM Communications , Not the focus of this article .
Next, let's focus on Anybus Under communication Profibus-DP Realization of communication
Use GSD The file has been uploaded to the resource page : Update the download address later
Trio The required code explanation :
'Anybus Insert the slot number occupied by the controller
anyb_slot=0
' The slave address assigned by the master
anyb_adr=3
' Site configuration information
'value = ANYBUS(1,slot [, address, baud])
?ANYBUS(1,anyb_slot,anyb_adr)
' Automatically configure site information
' among 100 It specifies the starting address of control communication input , Changeable
' among 200 It specifies the starting address of control communication output , Changeable
?ANYBUS(4, anyb_slot, anyb_adr, 0, 100, 200)
' Print configuration information
ANYBUS(0,anyb_slot)Trio As a slave station, the configuration is relatively simple , That's all , Thank you for taking the time to read .
边栏推荐
- UEFI development learning 5 - simple use of protocol
- Factors affecting the quality of slip rings in production
- Altium designer 19.1.18 - change the transparency of copper laying
- C WinForm [display real-time time in the status bar] - practical exercise 1
- .NET服务治理之限流中间件-FireflySoft.RateLimit
- Global and Chinese market of peeled bourdon tubes 2022-2028: Research Report on technology, participants, trends, market size and share
- UEFI development learning 6 - creation of protocol
- WiFi wpa_ Detailed description of supplicant hostpad interface
- Screen record of the opening ceremony of the Beijing winter olympics 2
- 研究發現,跨境電商客服系統都有這五點功能!
猜你喜欢

Network port usage

C, Numerical Recipes in C, solution of linear algebraic equations, LU decomposition source program

The firmware of the connected j-link does not support the following memory access

Makefile application

Summary -st2.0 Hall angle estimation

Nb-iot technical summary

Introduction of air gap, etc

生产中影响滑环质量的因素
![C WinForm [help interface - send email] - practice five](/img/2a/c4e7abe054e6fdd45acc7d297a033d.jpg)
C WinForm [help interface - send email] - practice five

Hardware 3 -- function of voltage follower
随机推荐
Global and Chinese markets for flexible endoscopic lithotripsy devices 2022-2028: Research Report on technology, participants, trends, market size and share
Consul安装
Global and Chinese market of urban rail connectors 2022-2028: Research Report on technology, participants, trends, market size and share
C language uses arrays to realize the intersection, union, difference and complement of sets
Programming knowledge -- basis of C language
Gradle composite construction
1-stm32 operation environment construction
Global and Chinese market of blackbody calibration source 2022-2028: Research Report on technology, participants, trends, market size and share
Relationship between line voltage and phase voltage, line current and phase current
[professional literacy] core conferences and periodicals in the field of integrated circuits
How to select conductive slip ring
Record the visual shock of the Winter Olympics and the introduction of the screen 2
Programming knowledge -- assembly knowledge
万字详解八大排序 必读(代码+动图演示)
Halcon's practice based on shape template matching [2]
The global and Chinese market of lithographic labels 2022-2028: Research Report on technology, participants, trends, market size and share
Makefile application
How to excavate and research ideas from the paper
How to migrate the device data accessed by the RTSP of the easycvr platform to easynvr?
IC software learning