beautypg.com

Table 5-2. optomux plc control and status bytes – Micromod Micro-DCI: 53MC5000 PLC AND PRINTER INTERFACES User Manual

Page 55

background image

Table 5-2. OPTOMUX PLC Control and Status Bytes

Title

Definition

DDI-A DDI-B

Set

By

De-

fault

Communic
ations
Error
Code*

Communications Error Codes are as follows:

255 = Timeout
254 = Checksum Error
253 = Bad Message
252 and 251= PCS Hardware Malfunction
240-247 = OPTO 22 Error Codes 00-07 (See the
appropriate OPTO 22 documentation for complete
definitions.)
00 = Power-Up Clear Expected - Command Ignored
01 = Undefined Command - Illegal Command

Character

02 = Checksum Error
03 = Input Buffer Overrun
04 = Non-Printable ASCII Character Received
05 = Data Field Error
06 = Communications Link Watchdog Time-Out Error
07 = Specified Limits Invalid

B682

B658

Soft-
ware

0

Communic
ations
Error
Count*

It is a running total of all timeouts, checksum errors, and
bad messages, etc. The Communications Error Counts
can be reset during operation by writing a 0 into B683
and B659.

B683

B659

Soft-
ware

0

Setup
Error

It indicates the following: 0 = No Error, 2 = Bad B
Value, 4 = Initialization Routine Running, 10 = Scan
Time at 0.

B684

B660

Soft-
ware

0

Scan
Time

It is the PCS time period for the read and write phases
of a PCS-OPTOMUX transaction. It is entered as a
number from 1 to 255 which represents 100 to 25,500
ms. (See Section 3.7.)

B685

B661

User

0

Scan
Overruns
Counter*

This counter is incremented each time the read-write
phases exceed the specified Scan Time. It indicates the
Scan Time should be increased. (See Section 3.7.)

B686

B662

Soft-
ware

0

First Bad
Board
Address*

Contains the address (0 - 39) of the first board returning
communication errors (e.g., 255 = Timeout, 254 = Bad
Checksum, 253 = Bad Message, 252 and 251 = PCS
hardware malfunction, and 240 - 247 = OPTOMUX PLC
Error Codes 00 - 07. See Communications Error Code
above.) Every time a board is accessed, it is checked
for a communications error. Boards are accessed in
descending order by group: the analog group (39 to
32), digital group 2 (31 to 16), then digital group 1 (15 to
0).

B687

B663

Soft-
ware

0

*User can reset by writing zeros into the datapoints.

Section 5. OPTO 22 Mode

OPTO

5-9