Details of the Explicit Exchange Objects of the T_COM_UTW_S 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 slave 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_S
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 carried out 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#01 for the slave Uni-Telway function
%MWr.m.c.3
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
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
Change from Uni-Telway to character mode (modem)
%MWr.m.c.15.14
CHAR_TO_UTW
BOOL
R/W
Change from Character Mode (modem) to Uni-Telway
%MWr.m.c.15.15