Status File

Home Study Material Status File
Side Bar
Plc Scada
sidedigital-img

 There is a very close relation between math instruction and some of the control status bits. After a math instruction is executed, the arithmetic status bits in the control status file are updated. Control status file is the data file "S2 - Status".


  • S:0/0 Carry (C) Sets if carry is generated; otherwise it is cleared.

  • S:0/1 Overflow (V) Indicates that the actual result of a math instruction does not fit in the designated destination

  • S:0/2 Zero (Z) Indicates a 0 value after a math, move or a logic instruction

  • S:0/3 Sign (S) Indicates a negative value after a math, move or logic instruction.

  • S:5/0 Minor Error Minor error bit is set upon detection of a mathematical overflow, or division by zero. This error can cause a CPU fault, which could be avoided if the bit is unlatched before the END, TND, or REF statement.

  • S:13S:14 Math register S:13 -Contains the least significant word of the 32 bit values of MUL, DDV, FRD, and TODS:14 -Contains the Most significant word of the 32 bit values of MUL, DDV, FRD and TOD