Appendix
P Special Function Register
SMB0: System status bit
The 8 bits of SMB0 play a special role in the system. At the end of each scan cycle, the PLC will
update the 8 bits. Users can use the special functions of these bits in the program to achieve
some common operations, the details shows as following table:
Function description(read only)
The bit is always on and can be used as enable bit if you want a section of
a program to execute every cycle.
This bit is only 1 at first scan and can be used as the enable bit to initialize
segment.
If the power-off hold data is lost, the bit opens a scan cycle. This bit can be
used as an error memory bit or to activate enable bits in a particular startup
order.
When the power is turned on into RUN mode, the bit is switched on for a
scan cycle. And it can provide machine warm-up time before operation.
This bit offers a square wave clock pulse period 1 min, 30s on and 30s off.
This bit offers a square wave clock pulse period 1sec, 0.5s on and 0.5s off.
The bit is the scanning clock, set 1 for this scan and 0 for the next, which
also can be used as enable bit of scan counter.
This bit indicates PLC switch (0: TERM, 1: RUN) position, be used as the
enable bit of the FPORT communication program segment, when the
switch is at the RUN position, the FPORT communication mode is effective,
PPI communication is effective when switch to TERM.
SMB1: Instruction execution status bit
The 8 bits of SMB1 are used to indicate errors or special states in the execution of certain
instructions, as detailed in the following table:
Function description(read only)
Set 1 when instruction executed as 0
Set 1 when instruction execution results overflow or detect illegal value
Set 1 when instruction execution results is negative
Set 1 when the divisor in the instruction is 0
Set 1 if the appended table length exceeds the table range when executing
ATT instructions
Set 1 if the table is empty when executing a LIFO or FIFO instruction,
Set 1 when trying to convert a non-BCD number to a binary number
Set 1 When ASCII code cannot be converted to a valid hexadecimal
number
SMB2: FPORT receive character
SMB2 is the FPORT receive character buffer, every character received is put here under FPORT