当前位置:网站首页>[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 .
边栏推荐
- Scm-05 basis of independent keyboard
- Acwing - the collection of pet elves - (multidimensional 01 Backpack + positive and reverse order + two forms of DP for the answer)
- Global and Chinese markets of nano biosensors 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese market of blackbody calibration source 2022-2028: Research Report on technology, participants, trends, market size and share
- Altium designer learning (I)
- . Net service governance flow limiting middleware -fireflysoft RateLimit
- 研究发现,跨境电商客服系统都有这五点功能!
- C # joint configuration with Halcon
- C language uses arrays to realize the intersection, union, difference and complement of sets
- Detailed explanation of pragma usage
猜你喜欢
![C WinForm [help interface - send email] - practice five](/img/2a/c4e7abe054e6fdd45acc7d297a033d.jpg)
C WinForm [help interface - send email] - practice five

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

MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一

Ads learning record (lna_atf54143)

Matlab2018b problem solving when installing embedded coder support package for stmicroelectronic

Altium Designer 19.1.18 - 隐藏某一个网络的飞线

研究發現,跨境電商客服系統都有這五點功能!

Markdown tips
![C WinForm [exit application] - practice 3](/img/25/30c795cc3fa6931eb1d733719d4ad0.jpg)
C WinForm [exit application] - practice 3

L'étude a révélé que le système de service à la clientèle du commerce électronique transfrontalier a ces cinq fonctions!
随机推荐
UEFI development learning 4 - getting to know variable services
Reasons for rapid wear of conductive slip rings
Solutions to compilation warnings in Quartus II
Programming knowledge -- assembly knowledge
Improve lighting C program
Some thoughts on extracting perspectives from ealfa and Ebeta
mysql 盲注常见函数
Shape template matching based on Halcon learning [viii] PM_ multiple_ models. Hdev routine
Can't find real-time chat software? Recommend to you what e-commerce enterprises are using!
matlab timeserise
Development tools -- gcc compiler usage
solver. Learning notes of prototxt file parameters
C WinForm [view status bar -- statusstrip] - Practice 2
C language enhancement -- pointer
Global and Chinese markets for anesthesia, breathing and sleep apnea devices 2022-2028: Research Report on technology, participants, trends, market size and share
Network port usage
Consul安装
Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)
Hardware 3 -- function of voltage follower
IEEE access personal contribution experience record