2 Instruction Descriptions
2-46
NJ-series Instructions Reference Manual (W502)
RS
The RS instruction retains the value of a BOOL variable. It gives priority to the Reset input if both the
Set input and Reset input are TRUE.
The RS instruction forms a self-holding output that gives priority to resetting. The following table shows
the relationship between the inputs are outputs.
Instruction Name FB/FUN Graphic expression ST expression
RS Reset-Priority Keep FB RS_instance(Set, Reset1,
Q1);
Variables
Name Meaning I/O Description Valid range Unit Default
Set Set
Input
Set input
Depends on data type. --- 0
Reset1 Reset Reset input
Q1 Keep Output Keep output Depends on data type. --- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
Set OK
Reset1 OK
Q1 OK
Function
Value of Set Value of Reset1 Value of Q1
TRUE TRUE FALSE
TRUE FALSE TRUE
FALSE TRUE FALSE
FALSE FALSE Not changed.
RS
Set Q1
Reset1
RS_instance