Event Data Managed by the Master
(Original Document)
Event Data
Event data is data that is transmitted to the master from a slave station.
Operating Principles
The following table describes the processing phases in event data communication:
Phases
Description
1
The slave station transmits event data to the PCMCIA card of the master station.
2
When the card receives the data, a bit from words %IWr.m.1.2 or %IWr.m.1.3 is initialized. Each bit of the input words is associated with a link address.
3
On detecting one of the bits, the application transmits a SEND_REQ communication function with code 16#82(read_generic_object) to the PCMCIA card of the master station for the data to be read.
Communication Function
The Uni-Telway request: 16#82 is used to read event data by accessing the Uni-Telway PCMCIA server:
SEND_REQ(ADDR('0.0.1.SYS'), 16#0082, %MW20:10, %MW100:4, %MW50:30)
The transmission buffer contains the following data:
Word
Byte 1 (most significant)
Byte 0 (least significant)
%MW20
16#31
16#06
%MW21
16#01
16#00
%MW22
Slave number
16#00
%MW23
16#FF
16#00
%MW24
16#00
Number of slaves
The buffer corresponds to the following coding:
Parameters
Size
Value
Segment number
1 byte
16#06
Family number
2 bytes
16#0031
Type number
2 bytes
16#0001
Slave address
2 bytes
16#00 Slave-addr
Type of access
1 byte
16#FF
Quantity
2 bytes
16#00 No. objects
NOTE: The TSX 57 and TSX 37 PLCs cannot send event data.