当前位置:网站首页>[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 .
边栏推荐
- Gradle composite construction
- 万字详解八大排序 必读(代码+动图演示)
- UEFI development learning 3 - create UEFI program
- solver. Learning notes of prototxt file parameters
- L'étude a révélé que le système de service à la clientèle du commerce électronique transfrontalier a ces cinq fonctions!
- matlab timeserise
- Create inf module in AMI code
- How to define guid in AMI code
- Verilog -- state machine coding method
- UEFI development learning 4 - getting to know variable services
猜你喜欢
C WinForm [get file path -- traverse folder pictures] - practical exercise 6
Halcon's practice based on shape template matching [2]
Altium designer learning (I)
C WinForm [help interface - send email] - practice five
Hardware and software solution of FPGA key chattering elimination
Altium Designer 19.1.18 - 导入板框
Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
Drive LED -- GPIO control
Realization of binary relation of discrete mathematics with C language and its properties
Altium designer 19.1.18 - change the transparency of copper laying
随机推荐
Record the opening ceremony of Beijing Winter Olympics with display equipment
研究发现,跨境电商客服系统都有这五点功能!
General makefile (I) single C language compilation template
Altium designer 19.1.18 - Import frame
Improve lighting C program
Fundamentals of C language
UEFI development learning series
Live555 push RTSP audio and video stream summary (I) cross compilation
Altium designer 19.1.18 - change the transparency of copper laying
Altium Designer 19.1.18 - 导入板框
Altium Designer 19.1.18 - 隐藏某一个网络的飞线
Pointnet++ classification practice
Global and Chinese market of core pallets 2022-2028: Research Report on technology, participants, trends, market size and share
Use of orbbec Astra depth camera of OBI Zhongguang in ROS melody
Global and Chinese market of digital shore durometer 2022-2028: Research Report on technology, participants, trends, market size and share
.NET服务治理之限流中间件-FireflySoft.RateLimit
万字详解八大排序 必读(代码+动图演示)
Measurement fitting based on Halcon learning [i] fuse Hdev routine
Can't find real-time chat software? Recommend to you what e-commerce enterprises are using!
Communication standard -- communication protocol