当前位置:网站首页>[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 .
边栏推荐
- Global and Chinese market of digital shore durometer 2022-2028: Research Report on technology, participants, trends, market size and share
- 如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?
- Cadence learning records
- Shape template matching based on Halcon learning [9] PM_ multiple_ dxf_ models. Hdev routine -- [read and write XLD from DXF file]
- C WinForm [view status bar -- statusstrip] - Practice 2
- Development tools -- gcc compiler usage
- Compilation warning solution sorting in Quartus II
- Ads usage skills
- Network communication model -- Network OSI tcp/ip layering
- Introduction of air gap, etc
猜你喜欢

Embedded composition and route

Altium designer 19.1.18 - change the transparency of copper laying

如何进行导电滑环选型

Arduino uses nrf24l01+ communication

Introduction of air gap, etc

C language # and #

Communication standard -- communication protocol
![Halcon's practice based on shape template matching [1]](/img/68/206eed7502fbf108a929aa9365b1ae.jpg)
Halcon's practice based on shape template matching [1]

Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)

Altium Designer 19.1.18 - 更改铺铜的透明度
随机推荐
Can't find real-time chat software? Recommend to you what e-commerce enterprises are using!
Step motor generates S-curve upper computer
Programming knowledge -- assembly knowledge
Hardware 3 -- function of voltage follower
Hardware 1 -- relationship between gain and magnification
通过sql语句统计特定字段出现次数并排序
The research found that the cross-border e-commerce customer service system has these five functions!
.NET服务治理之限流中间件-FireflySoft.RateLimit
Improve lighting C program
The firmware of the connected j-link does not support the following memory access
Global and Chinese markets of nano biosensors 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
Markdown tips
Sql Server的存储过程详解
Some tips for using source insight (solve the problem of selecting all)
Detailed explanation of pragma usage
Factors affecting the quality of slip rings in production
Random function usage notes
C#,数值计算(Numerical Recipes in C#),线性代数方程的求解,LU分解(LU Decomposition)源程序