omron — I6 Error Reporting Mode

PMAC Product Guide When CS handshaking is not used (I1 is 1 or 3), PMAC disregards the state of the CS input and always sends the character immediately. This mode permits PMAC to output messages, values, and acknowledgments over the serial port even when there is nothing connected which can be valuable in stand-alone and PLC-based applications where there are SEND and CMD statements in the program. If these strings cannot be sent out the serial port, they can back up, stopping program execution.

When software addressing is not used (I1 is 0 or 1), PMAC assumes that it is the only card on the serial line, so it always acts on received commands, sending responses back over the line as appropriate. When software addressing is used (I1 is 2 or 3), PMAC assumes that there are other cards on the line, so it requires that it be addressed (with the @{card} command) before it responds to commands. The {card} number in the command must match the card number set up in hardware on the card with jumpers or DIP switches. I5 PLC Programs On/Off Range: 0 .. 3 Default: 0 Units: none This parameter controls which PLC programs may be enabled. There are two types of PLC programs:

the foreground program (PLC 0) which operates at the end of servo interrupt calculations with a repetition rate determined by I8 (PLC 0 should be used only for time-critical tasks and should be short); and the background programs (PLC 1 to PLC 31) which cycle repeatedly in background as time allows. I5 controls these as follows: Note that an individual PLC program must be enabled to run -- a proper value of I5 merely permits it to be run. Any PLC program that exists at power-up or reset is automatically enabled (even if the saved value of I5 does not permit it to run immediately); also, the ENABLE PLC n command enables the specified programs.

A PLC program is disabled either by the DISABLE PLC n command, or by the OPEN PLC n command. A CLOSE command does not re-enable the PLC program automatically -- it must be done explicitly. I6 Error Reporting Mode Range: 0 .. 3 Default: 3 Units: none This parameter reports how PMAC reports errors in command lines. When I6 is set to 0 or 2, PMAC reports any error only with a character. When I6 is 0, the character is given for invalid commands issued both from the host and from PMAC programs (using CMD"{command}" ). When I6 is 2, the character is given only for invalid commands from the host; there is no response to invalid commands issued from PMAC programs.

(In no mode is there a response to valid commands issued from PMAC programs. 98 I-Variables Setting Meaning 0 Foreground PLC off; background PLC off 1 Foreground PLC on; background PLC off 2 Foreground PLC off; background PLC on 3 Foreground PLC on; background PLC on