STATUS (n)

Purpose Return the status of various system operations.
Function

Returned value

status (1) 0 - Normal power on reset
1 - Reset by Watch Dog Timer (WDT)
status (2) 0 - READMODBUS or WRITEMODBUS failure
1 - READMODBUS or WRITEMODBUS successful
status(8) PLC’s ID address stored in EEPROM for host communication
Examples IF STATUS(2)    'MODBUS READ/WRITE OK

ELSE           'MODBUS READ/WRITE failed

ENDIF

backbutton.gif (507 bytes)  Basic to TBASIC Reference Manual