Slave to Master exchanges
(Original Document)
At a Glance
The Slave station carries out exchanges to the Master station:
Exchanges to the master station
An exchange from the Slave Ad1 to the Master, as seen at point 1 in the diagram above, is used for communication from the Slave application program to the Master system (access to the different objects, etc.).
Exchanges to the application
An exchange from the Slave Ad1 to the Master, as seen at point 2 in the diagram above, is used for sending messages from the Slave application program to the Master application program.
Communication function
Usage of the SEND_REQ function by a slave requires the introduction of a table of 6 bytes corresponding to the destination address at the beginning of the transmission buffer.
The first six bytes of the transmission buffer are coded as follows:
Byte 1 (most significant)
Byte 0 (least significant)
Word 1
station
network
Word 2
module number or selector
gate number
Word 3
reference if gate 8
channel number
To send to the Master system identified by gate 0:
Byte 1 (most significant)
Byte 0 (least significant)
Word 1
16#FE
16#00
Word 2
16#00
16#00
Word 3
16#00
16#00
To send to the Master application identified by gate 16:
Byte 1 (most significant)
Byte 0 (least significant)
Word 1
16#FE
16#00
Word 2
16#00
16#10
Word 3
16#00
16#00
NOTE: For a TSX 47-10 master, the gate number is 16 + text block number
To send to the system of a remote PLC (network 2 station 3):
Byte 1 (most significant)
Byte 0 (least significant)
Word 1
16#03
16#02
Word 2
16#00
16#00
Word 3
16#00
16#00
Addressing
When a slave uses the SEND_REQ function, the syntax used is as follows:
SEND_REQ(ADDR('r.m.c.x'), request number, , %MW1:size)
The address of the function transmitter is type ADDR('r.m.c.x'), where:
Parameter
Description
r
Rack number
m
Module number
c
Channel number
x
Ad1 client address of the transmitter
%MW1:size is a table of words containing the destination address structured as follows:
If access to Master system
If access to Master application
%MW1 = FE 00
%MW1 = FE 00
%MW2 = 00 00
%MW2 = 00 10
%MW3 = 00 00
%MW3 = 00 00
%MW4 = request parameters
%MW4 = request parameters
%MW ... = ...
%MW ... = ...