当前位置:网站首页>[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 .
边栏推荐
- 1089 insert or merge, including test point 5
- solver. Learning notes of prototxt file parameters
- Altium designer learning (I)
- C#,数值计算(Numerical Recipes in C#),线性代数方程的求解,LU分解(LU Decomposition)源程序
- Some tips for using source insight (solve the problem of selecting all)
- Makefile application
- 通过sql语句统计特定字段出现次数并排序
- Wifi-802.11 negotiation rate table
- Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
- 如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?
猜你喜欢
Semiconductor devices (III) FET
UEFI development learning 2 - running ovmf in QEMU
Measurement fitting based on Halcon learning [II] meaure_ pin. Hdev routine
Arduino uses nrf24l01+ communication
Improve lighting C program
Halcon's practice based on shape template matching [2]
Step motor generates S-curve upper computer
Development tools -- gcc compiler usage
Hardware 3 -- function of voltage follower
Screen record of the opening ceremony of the Beijing winter olympics 2
随机推荐
Global and Chinese market of peeled bourdon tubes 2022-2028: Research Report on technology, participants, trends, market size and share
Correlation based template matching based on Halcon learning [II] find_ ncc_ model_ defocused_ precision. hdev
Can't find real-time chat software? Recommend to you what e-commerce enterprises are using!
Live555 push RTSP audio and video stream summary (III) flower screen problem caused by pushing H264 real-time stream
Some thoughts on extracting perspectives from ealfa and Ebeta
软件设计师:03-数据库系统
Connection mode - bridge and net
C language uses arrays to realize the intersection, union, difference and complement of sets
Random function usage notes
mysql 盲注常见函数
Embedded composition and route
研究發現,跨境電商客服系統都有這五點功能!
如何进行导电滑环选型
Gradle复合构建
Ads learning record (lna_atf54143)
Shell script basic syntax
Step motor generates S-curve upper computer
Network communication model -- Network OSI tcp/ip layering
Shape template matching based on Halcon learning [vi] find_ mirror_ dies. Hdev routine
Altium designer 19.1.18 - clear information generated by measuring distance