Gettablestate, Getword, Xcmd's & xfcn's – Det-Tronics Mac - w/Supercard User Manual
Page 71

G
ET
T
ABLE
S
TATE
G
ET
W
ORD
XCMD's & XFCN's
4.7
95-8434
This command will return the changed bit of the datatable requested.
GetTableState(3)
Example:
on openCard
if GetTableState(3) then
beep
end if
end openCard
The datatables maintain a CRC (Cyclic Redundancy Check) that is com-
pared to any new data that is received from the PLC. If the data is differ-
ent from the last data received, a flag is set. Calling this command returns
the state of the flag and clears it. If the bit is set since the last time this call
was made (for this table) the data has changed.
This command gets the value (–32768 to 32767) of any single word in
the PLC. The address that the operator requests the state of must be con-
figured in the “Datatable Configuration” window of the EagleVision™
application. Refer to the section on addressing for the correct format of
the address.
GetWord(PLCNum,address)
Example:
on idle
put GetWord(27,”44080”) into theValue
end idle
on idle
if GetWord(27,”44085”) = 5678 then
your command for equal
else
your command for not equal
end idle