当前位置:网站首页>[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 .
边栏推荐
- Correlation based template matching based on Halcon learning [II] find_ ncc_ model_ defocused_ precision. hdev
- Extended application of single chip microcomputer-06 independent key
- Baiwen 7-day smart home learning experience of Internet of things
- Programming knowledge -- assembly knowledge
- Shape template matching based on Halcon learning [9] PM_ multiple_ dxf_ models. Hdev routine -- [read and write XLD from DXF file]
- Step motor generates S-curve upper computer
- Ads usage skills
- Gradle复合构建
- Altium Designer 19.1.18 - 隐藏某一个网络的飞线
- Network port usage
猜你喜欢
Create inf module in AMI code
Relationship between line voltage and phase voltage, line current and phase current
找不到实时聊天软件?给你推荐电商企业都在用的!
Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
Shape template matching based on Halcon learning [viii] PM_ multiple_ models. Hdev routine
MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
Correlation based template matching based on Halcon learning [II] find_ ncc_ model_ defocused_ precision. hdev
C#,数值计算(Numerical Recipes in C#),线性代数方程的求解,LU分解(LU Decomposition)源程序
C WinForm [exit application] - practice 3
软件设计师:03-数据库系统
随机推荐
Win10 shortcut key
Global and Chinese markets of large aperture scintillators 2022-2028: Research Report on technology, participants, trends, market size and share
Altium Designer 19.1.18 - 导入板框
Relationship between line voltage and phase voltage, line current and phase current
C#,数值计算(Numerical Recipes in C#),线性代数方程的求解,LU分解(LU Decomposition)源程序
Adaptive filter
Cadence simulation encountered "input.scs": can not open input file change path problem
Count and sort the occurrence times of specific fields through SQL statements
Ads usage skills
Ads learning record (lna_atf54143)
Shape template matching based on Halcon learning [viii] PM_ multiple_ models. Hdev routine
UEFI development learning 5 - simple use of protocol
[professional literacy] specific direction of analog integrated circuits
Compilation warning solution sorting in Quartus II
Random function usage notes
Network communication process
Communication standard -- communication protocol
Live555 RTSP audio and video streaming summary (II) modify RTSP server streaming URL address
Global and Chinese market for blood typing 2022-2028: Research Report on technology, participants, trends, market size and share
Shape template matching based on Halcon learning [9] PM_ multiple_ dxf_ models. Hdev routine -- [read and write XLD from DXF file]