EasyManuals Logo

COTRUST CTH200 Series User Manual

COTRUST CTH200 Series
350 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #185 background imageLoading...
Page #185 background image
CTH200 Series PLC User Manual
175
MBUS_INIT parameter configuration explanation
Addr
Set slave station address 1
Baud
Set baud rate 115200
Parity
Set parity no-parity
Delay
Set delay time 0ms
MaxIQ
Set maxIQ 64 I/O(000001-0000064 and 010001-010064)
MaxAI
Set maxAI 32 analog inputs(030001-030032)
MaxHold
Set maxhold number of V area holding register(word as unit )
StartHold
Starting address of S7-200 V area holding register that Modbus master
station can visit (such as &VB0).
Use Modbus master station protocol instructions
Modbus master station protocol instructions occupy CTH200CPU resource
1) According to different Modbus protocol libraries, the FPORT 0 or 1 is used as the slave station
protocol. When Port 0 or Port 1 is used as Modbus protocol communication, it cannot be used for
any other purpose, including communication with MagicWorks PLC or SETP7-Micro/WIN,
FPORT communication. The MBUS_INIT controls Port is set to Modbus is still PPI.
2) All SM corresponding to selected FPORT
3) Occupy 119 byte program space
MBUS_CTRL instruction
Use SM0.0 to call MBUS_CTRL instruction to initialize master station and enable it.
Parameter explanation:
Parameter
address
Explanation
Type
Value range
Note
Mode
Set communication
mode: 1 enable
Modbus protocol, and
0 recovery system to
PPI protocol.
Bit
Baud
Set baud rate
DWord
11200, 2400, 4800, 9600,
19200, 38400, 57600,
115200
Parity
Set parity
Byte
0No parity
1Odd parity
2Even parity
All settings
use one
stop bit.
Timeout
Time master station
wait for slave station,
ms as unit.
Int
1~32767
Typical
value
1000ms.
Done
Completion bit,
automatically set 1
after initialization.
Bit
Error
Initialization error
code
Byte
0no error
1illegal parity selection
2illegal baud-rate selection
3illegal mode selection
Valid only
when
Done bit is
1.
MBUS_MSG instruction
Use SM0.0 to call Modbus RTU master station R/W subroutine MBUS_MSG, send a Modbus
request after First connected. One R/W function (MBUS_MSG) enable at same time.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the COTRUST CTH200 Series and is the answer not in the manual?

COTRUST CTH200 Series Specifications

General IconGeneral
BrandCOTRUST
ModelCTH200 Series
CategoryController
LanguageEnglish