当前位置:网站首页>[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 .
边栏推荐
- Consul安装
- Relationship between line voltage and phase voltage, line current and phase current
- . Net service governance flow limiting middleware -fireflysoft RateLimit
- Live555 push RTSP audio and video stream summary (I) cross compilation
- Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
- Hardware and software solution of FPGA key chattering elimination
- Solutions to compilation warnings in Quartus II
- Cadence learning records
- Hardware 3 -- function of voltage follower
- Altium designer 19.1.18 - hide the fly line of a network
猜你喜欢
![C WinForm [display real-time time in the status bar] - practical exercise 1](/img/9f/d193cbb488542cc4c439efd79c4963.jpg)
C WinForm [display real-time time in the status bar] - practical exercise 1

Use of orbbec Astra depth camera of OBI Zhongguang in ROS melody

C#,数值计算(Numerical Recipes in C#),线性代数方程的求解,LU分解(LU Decomposition)源程序

Drive LED -- GPIO control

研究发现,跨境电商客服系统都有这五点功能!

Software designer: 03 database system

Ads usage skills

找不到实时聊天软件?给你推荐电商企业都在用的!

万字详解八大排序 必读(代码+动图演示)

Solutions to compilation warnings in Quartus II
随机推荐
Network communication model -- Network OSI tcp/ip layering
Global and Chinese market of rammers 2022-2028: Research Report on technology, participants, trends, market size and share
Halcon's practice based on shape template matching [1]
UEFI development learning 6 - creation of protocol
Shell脚本基本语法
Global and Chinese markets for recycled boilers 2022-2028: Research Report on technology, participants, trends, market size and share
Shape template matching based on Halcon learning [9] PM_ multiple_ dxf_ models. Hdev routine -- [read and write XLD from DXF file]
Count and sort the occurrence times of specific fields through SQL statements
1-stm32 operation environment construction
The global and Chinese market of lithographic labels 2022-2028: Research Report on technology, participants, trends, market size and share
Train your dataset with yolov4
Nb-iot technical summary
Introduction of air gap, etc
A simple method to prove 1/t Fourier transform
Global and Chinese market of resistivity meter 2022-2028: Research Report on technology, participants, trends, market size and share
C WinForm [display real-time time in the status bar] - practical exercise 1
C WinForm [realize the previous and next selection pictures] - practice 7
Global and Chinese market of digital shore durometer 2022-2028: Research Report on technology, participants, trends, market size and share
Altium designer 19.1.18 - Import frame
[popular science] some interesting things that I don't know whether they are useful or not