Language objects associated with the configuration. Schneider Electric PL7 Micro/Junior/Pro - Communication applications, volume 2
Anúncio
Anúncio
Modbus language objects
Language objects associated with the configuration
At a Glance This page describes all configuration language objects enabling Modbus communication which can be displayed by the application program.
Objects for the
Modbus master function (where
Terminal Port is inoperative)
The following table describes internal constants for the Modbus master function
(except on the Terminal Port):
Object
%KWxy.i.0
%KWxy.i.1
%KWxy.i.2
Function
Type
Speed / Format
Meaning
Byte 0 = 16#06 for Modbus master function
Byte 1: reserved
Byte 0 = speed l 128 = 300 bits/s, 129 = 600 bits/s (only for TSX
SCP 111) l l l l l 00 = 1200 bits/s, ..., 04 = 19200 bits/s
Byte 1 = format x8: bit number (1 = 8 bits, 0 = 7 bits) x9: parity management (1 = with, 0 = without) x10: Parity Type (1 = odd, 0 = even) x11: stop bit (1 = 1 bit, 0 = 2 bits)
Value in ms from 2 ms to 10 000 ms
%KWxy.i.3
%KWxy.i.4
%KWxy.i.5
Delay between characters
Wait Time
Retries and Signal
Management
RTS / CTS Delay
Wait Time in ms from 10 ms to 10 000 ms
Byte 0 = number of retries (3 by default)
Byte 1 = Signal Management l x8 = 1 if PSR signal management
(TSX SCP 112) l x10 = 1 if DCD Data Carrier management
(TSX SCP 111)
Delay time in hundredths of ms, only for TSX SCP
111 (default value 0 ms)
60
TLX DS COM PL7 xxE
Modbus language objects
Objects for
Modbus master function on
Terminal Port
The following table describes internal constants for the Modbus master function on the Terminal Port:
Object
%KW0.0.0
%KW0.0.1
%KW0.0.2
Function
Type/Speed
Format/delay between characters
Number of retries/ response time
Meaning
Byte 0 = 16#06 for Modbus master function
Byte 1 = Transmission Speed: l 00 = 1200 bits/s, ..., 04 = 19200 bits/s
Byte 0 = format l l l l x0: number of bits (1 = 8 bits, 0 = 7 bits) x1: parity management (1 = with, 0 = without) x2: Parity Type (1 = odd, 0 = even) x3: stop bit (1 = 1 bit, 0 = 2 bits)
Byte 1 = delay between characters depending on the speed: l l l l l
1200: from 29 ms to 255 ms
2400: from 15 ms to 255 ms
4800: from 7 ms to 255 ms
9600: from 4 ms to 255 ms
19200: from 2 ms to 255 ms
Byte 0 = number of retries (0 to 15)
Byte 1 = response time (200 ms to 10 s)
Objects for
Modbus slave function (where
Terminal Port is inoperative)
The language objects for the Modbus slave function are identical to those of the
Modbus master function.
Only the objects in the following table differ:
Object
%KWxy.i.0
%KWxy.i.3
Function
Type
Slave Addresses
Meaning
Byte 0 = 16#7 for Modbus slave function
Byte 1: reserved
Byte 0: slave number value (0 to 98) l Byte 0: l for TSX SCY21600/21601, the slave number value is between 0 and 98.
l for TSX SCY 11601, the slave number value is between 0 and 247.
l Byte 1: reserved
TLX DS COM PL7 xxE
61
Modbus language objects
Objects for
Modbus slave function on
Terminal Port
The language objects for the Modbus slave function are identical to those of the
Modbus master function on the Terminal Port.
Only the objects in the following table differ:
Object
%KW0.0.0
%KW0.0.2
Function
Type
Slave Number
Meaning
Byte 0 = 16#7 for Modbus slave function
Byte 0: slave number value (1 to 98)
62
TLX DS COM PL7 xxE
Download
Anúncio