Previous Topic

Next Topic

Book Contents

Book Index

COMErrData [D>=17]

Push 3 error indicators onto the stack (simultaneous capture, to avoid timing hazards), and reset the error count to 0:

Z = Err Address

This is the address of the most recent remote device that caused or reported an error.

Y = Err Code

This is the code of the most recently generated communications error. The error code depends on the protocol. Codes are documented under each protocol, e.g. ModBus.

X = Error count

How many errors have be recorded since the counter was reset. This is an 8-bit number that will count up to 255 then stop counting.

Previous Topic

Next Topic