Contec CONPROSYS nano CPSN-PCB271-S1-041 Reference Manual page 58

Table of Contents

Advertisement

 Conditional expression (IF - THEN)
Determine a condition, then execute or skip routine.
IF StartFlag THEN
(Routine)
END_IF
If a value of variable [StartFlag] is [True], then execute the routine placed between END_IF.
 Conditional expression (CASE - OF)
Determine a condition, then execute or skip routine.
CASE State OF
0:
(Routine 1)
1:
(Routine 2)
END_CASE
If the value of variable [State] is [0], execute routine 1.
If the value of variable [State] is [1], execute routine 2.
*
For details of ST language, please refer to the following site "PLCopen".
PLCopen
Basic Programming
CPSN-PCB271-S1-041 Reference Manual (Software)
https://www.plcopen.org
— 58 —

Advertisement

Table of Contents
loading

Table of Contents