Omron 3G3MX2 Series User Manual page 120

Drive programming
Hide thumbs Also See for 3G3MX2 Series:
Table of Contents

Advertisement

While/Wend
Command
Executes <command set> while a condition is
met.
 Example
Block number
1 to 4
If X(00) is 1, it adds 1 to U(01), waits for 1.00 second with the "wait" command, and jumps to the
"while" command. If X(00) is not 1, it executes the next command after the "wend" command.
5
Jumps to the block 1: loop_ unconditionally.
Drive Programming User's Manual (I580-E2)
Description
Flowchart method
Flowchart
6 Drive Programming Commands
Condition: a comparison between two variables
or constants with the format <left hand value>
<comparison operator> <right hand value>.
• Left hand value: any variable or constant
(range 128 to 127)
• Comparison operator: , <, >, <, >, or <>
• Right hand value: any variable or constant
(range 128 to 127)
Command set: one or more commands until
the "wend" command. It can contain nested
commands (up to eight levels).
Format
Text language method
while <condition>
<command set>
wend
Operation
Argument
Text
6 - 19
6

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

3g3rx series3g3lx series

Table of Contents