Standard
RLL Instructions
5–5
Standard RLL Instructions
Boolean Instructions
Use the AND instruction to join two or more contacts in series. The following
example shows two contacts in series and a single output coil. The instructions used
would be STR X0, AND X1, followed by OUT Y0.
OUT
Y0X0
END
X1
DirectSOFT Example Handheld Mnemonics
STR X0
AND X1
OUT Y0
END
Sometimes it is necessary to use midline outputs to get additional outputs that are
conditional on other contacts. The following example shows how you can use the
AND instruction to continue a rung with more conditional outputs.
OUT
Y0X0
END
X1
DirectSOFT Example Handheld Mnemonics
STR X0
AND X1
OUT Y0
AND X2
OUT Y1
AND X3
OUT Y2
END
X2
OUT
Y1
X3
OUT
Y2
You also have to join contacts in parallel. The OR instruction allows you to do this.
The following example shows two contacts in parallel and a single output coil. The
instructions would be STR X0, OR X1, followed by OUT Y0.
OUT
Y0X0
END
X1
DirectSOFT Example Handheld Mnemonics
STR X0
OR X1
OUT Y0
END
Contacts in Series
Midline Outputs
Parallel Elements