当前位置:网站首页>[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 core pallets 2022-2028: Research Report on technology, participants, trends, market size and share
- Live555 push RTSP audio and video stream summary (III) flower screen problem caused by pushing H264 real-time stream
- Global and Chinese market of blackbody calibration source 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese markets of large aperture scintillators 2022-2028: Research Report on technology, participants, trends, market size and share
- Acwing - the collection of pet elves - (multidimensional 01 Backpack + positive and reverse order + two forms of DP for the answer)
- Altium Designer 19.1.18 - 更改铺铜的透明度
- 生产中影响滑环质量的因素
- MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
- The research found that the cross-border e-commerce customer service system has these five functions!
- Shape template matching based on Halcon learning [vi] find_ mirror_ dies. Hdev routine
猜你喜欢

Nb-iot technical summary

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

Process communication mode between different hosts -- socket

Shell script basic syntax

Carrier period, electrical speed, carrier period variation

Volatile of C language

Hardware 3 -- function of voltage follower

VESC Benjamin test motor parameters

Step motor generates S-curve upper computer

Some thoughts on extracting perspectives from ealfa and Ebeta
随机推荐
Matlab2018b problem solving when installing embedded coder support package for stmicroelectronic
Shell脚本基本语法
Markdown tips
Global and Chinese market of digital shore durometer 2022-2028: Research Report on technology, participants, trends, market size and share
UEFI development learning 5 - simple use of protocol
String judgment
Global and Chinese market of quenching furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
Altium Designer 19.1.18 - 导入板框
WiFi wpa_ Detailed description of supplicant hostpad interface
LED display equipment records of the opening ceremony of the Beijing Winter Olympics
How to migrate the device data accessed by the RTSP of the easycvr platform to easynvr?
Volatile of C language
1089 insert or merge, including test point 5
Ads learning record (lna_atf54143)
Detailed explanation of pragma usage
Global and Chinese markets for medical oxygen machines 2022-2028: Research Report on technology, participants, trends, market size and share
Factors affecting the quality of slip rings in production
万字详解八大排序 必读(代码+动图演示)
solver. Learning notes of prototxt file parameters
Compilation warning solution sorting in Quartus II