Details of the explicit exchange objects of the T_COM_UTW_M type IODDT for PCMCIA cards
(Original Document)
At a Glance
This part presents the explicit exchange objects of the IODDT of the T_COM_UTW_M type which apply to Uni-Telway master communication with PCMCIA cards. It includes the word type objects whose bits have a specific meaning. These objects are described in detail below.
Sample Variable Declaration: IODDT_VAR1 of type T_COM_UTW_M
Observations
Execution flags of an explicit exchange: EXCH_STS
The table below shows the meaning of channel exchange control bits from channel EXCH_STS (%MWr.m.c.0).
Standard symbol
Type
Access
Meaning
Address
STS_IN_PROGR
BOOL
R
Reading of channel status words in progress.
%MWr.m.c.0.0
CMD_IN_PROGR
BOOL
R
Current parameter exchange in progress.
%MWr.m.c.0.1
ADJ_IN_PROGR
BOOL
R
Adjustment parameter exchange in progress.
%MWr.m.c.0.2
Explicit exchange report: EXCH_RPT
The table below presents the meaning of the exchange report bits EXCH_RPT (%MWr.m.c.1).
Standard symbol
Type
Access
Meaning
Address
STS_ERR
BOOL
R
Reading error for channel status words.
%MWr.m.c.1.0
CMD_ERR
BOOL
R
Error during command parameter exchange.
%MWr.m.c.1.1
ADJ_ERR
BOOL
R
Error during adjustment parameter exchange.
%MWr.m.c.1.2
Standard channel faults, CH_FLT
The table below shows the meaning of the bits of the status word CH_FLT (%MWr.m.c.2). Reading is performed by a READ_STS(IODDT_VAR1).
Standard symbol
Type
Access
Meaning
Address
NO_DEVICE
BOOL
R
No device is working on the channel.
%MWr.m.c.2.0
1_DEVICE_FLT
BOOL
R
A device on the channel is faulty.
%MWr.m.c.2.1
BLK
BOOL
R
Terminal block fault (not connected).
%MWr.m.c.2.2
TO_ERR
BOOL
R
Time out error (defective wiring).
%MWr.m.c.2.3
INTERNAL_FLT
BOOL
R
Internal error or channel self-testing.
%MWr.m.c.2.4
CONF_FLT
BOOL
R
Different hardware and software configurations.
%MWr.m.c.2.5
COM_FLT
BOOL
R
Problem communicating with the PLC.
%MWr.m.c.2.6
APPLI_FLT
BOOL
R
Application error (adjustment or configuration error).
%MWr.m.c.2.7
Specific channel status, %MWr.m.c.3
The table below shows the meanings of the PROTOCOL (%MWr.m.c.3) channel status word. Reading can be done via a READ_STS (IODDT_VAR1).
Standard symbol
Type
Access
Meaning
Address
PROTOCOL
INT
R
Byte 0 = 16#00 for the master Uni-Telway function.
%MWr.m.c.3
Status of slaves
The table below presents the meanings of the slave status words. Reading can be done via a READ_STS (IODDT_VAR1). For details on the bits of these status words, follow the principle described in the table.
Standard symbol
Type
Access
Meaning
Address
SLAVE_STS_0_15
INT
R
Status of slaves 0 to 15.
%MWr.m.c.8
SLAVE_STS_16_31
INT
R
Status of slaves 16 to 31.
%MWr.m.c.9
SLAVE_STS_32_47
INT
R
Status of slaves 32 to 47.
%MWr.m.c.10
SLAVE_STS_48_63
INT
R
Status of slaves 48 to 63.
%MWr.m.c.11
SLAVE_STS_64_79
INT
R
Status of slaves 64 to 79.
%MWr.m.c.12
SLAVE_STS_80_95
INT
R
Status of slaves 80 to 95.
%MWr.m.c.13
SLAVE_STS_96_111
INT
R
Status of slaves 96 to 111.
%MWr.m.c.14
Status of slaves
The table below presents the meanings of the status word bits for slaves SLAVE_STS_0_15 (%MWr.m.c.8). Reading can be done via a READ_STS (IODDT_VAR1).
Standard symbol
Type
Access
Meaning
Address
SLAVE_STS_0
BOOL
R
=1, slave 0 is responding.
%MWr.m.c.8.0
SLAVE_STS_1
BOOL
R
=1, slave 1 is responding.
%MWr.m.c.8.1
SLAVE_STS_2
BOOL
R
=1, slave 2 is responding.
%MWr.m.c.8.2
SLAVE_STS_3
BOOL
R
=1, slave 3 is responding.
%MWr.m.c.8.3
SLAVE_STS_n
BOOL
R
=1, slave n is responding.
%MWr.m.c.8.n
SLAVE_STS_15
BOOL
R
=1, slave 15 is responding.
%MWr.m.c.8.15
Status of slaves
The table below presents the meanings of the status word bits for slaves SLAVE_STS_16_31 (%MWr.m.c.9). Reading can be done via a READ_STS (IODDT_VAR1).
Standard symbol
Type
Access
Meaning
Address
SLAVE_STS_16
BOOL
R
=1, slave 16 is responding.
%MWr.m.c.9.0
SLAVE_STS_17
BOOL
R
=1, slave 17 is responding.
%MWr.m.c.9.1
SLAVE_STS_18
BOOL
R
=1, slave 18 is responding.
%MWr.m.c.9.2
SLAVE_STS_19
BOOL
R
=1, slave 19 is responding.
%MWr.m.c.9.3
SLAVE_STS_n
BOOL
R
=1, slave n is responding.
%MWr.m.c.9.i
SLAVE_STS_31
BOOL
R
=1, slave 31 is responding.
%MWr.m.c.9.15
The above principle also applies for slaves 32 to 111 with the corresponding status words.
Command
The table below shows the meaning of the bits of the CONTROL word (%MWr.m.c.15). The command is made by a WRITE_CMD, e.g.: WRITE_CMD (IODDT_VAR1).
Standard symbol
Type
Access
Meaning
Address
-
BOOL
R/W
Reset counter.
%MWr.m.c.15.0
DTR_ON
BOOL
R/W
DTR signal (Data Terminal Ready) ON.
%MWr.m.c.15.8
DTR_OFF
BOOL
R/W
DTR signal (Data Terminal Ready) OFF.
%MWr.m.c.15.9
UTW_TO_CHAR
BOOL
R/W
Uni-Telway change to character mode (modem).
%MWr.m.c.15.14
CHAR_TO_UTW
BOOL
R/W
Character Mode change to Uni-Telway (modem).
%MWr.m.c.15.15