当前位置:网站首页>[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 .
边栏推荐
- Train your dataset with yolov4
- C#,数值计算(Numerical Recipes in C#),线性代数方程的求解,LU分解(LU Decomposition)源程序
- How to select conductive slip ring
- Sql Server的存储过程详解
- Nb-iot technical summary
- WiFi wpa_ Detailed description of supplicant hostpad interface
- Some tips for using source insight (solve the problem of selecting all)
- Correlation based template matching based on Halcon learning [II] find_ ncc_ model_ defocused_ precision. hdev
- General makefile (I) single C language compilation template
- Volatile of C language
猜你喜欢
导电滑环磨损快的原因
Measurement fitting based on Halcon learning [III] PM_ measure_ board. Hdev routine
Train your dataset with yolov4
The research found that the cross-border e-commerce customer service system has these five functions!
C WinForm [help interface - send email] - practice five
生产中影响滑环质量的因素
Arduino uses nrf24l01+ communication
Altium Designer 19.1.18 - 隐藏某一个网络的飞线
H264 (I) i/p/b frame gop/idr/ and other parameters
软件设计师:03-数据库系统
随机推荐
Factors affecting the quality of slip rings in production
Reasons for rapid wear of conductive slip rings
Global and Chinese markets for anesthesia, breathing and sleep apnea devices 2022-2028: Research Report on technology, participants, trends, market size and share
How to select conductive slip ring
The global and Chinese market of lithographic labels 2022-2028: Research Report on technology, participants, trends, market size and share
Shape template matching based on Halcon learning [viii] PM_ multiple_ models. Hdev routine
Altium designer 19.1.18 - Import frame
Verilog -- state machine coding method
. Net service governance flow limiting middleware -fireflysoft RateLimit
Measurement fitting based on Halcon learning [i] fuse Hdev routine
Fundamentals of C language
Ads usage skills
Improve lighting C program
MySQL blind note common functions
Record the torch encountered by win10 cuda. is_ False problem in available()
.NET服务治理之限流中间件-FireflySoft.RateLimit
C WinForm [help interface - send email] - practice five
万字详解八大排序 必读(代码+动图演示)
Consul installation
Global and Chinese markets of large aperture scintillators 2022-2028: Research Report on technology, participants, trends, market size and share