23 Macro
23-26
Example
• IF ($u100 < 10) (W)
$u100 = $u100 + 1 (W)
ELSE
$u100 = 0 (W)
ENDIF
“$u100 = $u100 + 1” is executed when $u100 is smaller than 10. When $u100 is 10 or more,
“$u100 = 0” is executed.
• Comparison of data in BIT format
IFNZ ($u100-00) (B)
$u100 = $u100 + 1 (W)
ELSE
$u100 = 0 (W)
ENDIF
If $u100-00 is ON, $u100 = $u100 + 1 is executed. If $u100-00 is OFF, $u100 = 0 is executed.
Restrictions
• IF-ELSE-ENDIF commands can be nested up to 8 levels.
Supplementary information
• An error occurs to the macro editor when any of the following conditions is met.
1) When IF-ELSE-ENDIF commands are nested beyond 8 levels;
2) When the number of IF commands is not the same as the one of ENDIF commands;
3) When the number of IF commands is not the same as the one of ELSE commands;
4) When FOR and NEXT commands are specified in a series of IF-ELSE-ENDIF commands.
Example: IF ($u100 > 0)
IF ($u100 < 10)
There are 9 or more IF commands between IF-ENDIF
commands.
:
IF ($u200 == 1)
ENDIF
Example: IF ($u100 == 0)
There are two IF commands while there is one ENDIF
command.
IF ($u100 == 0)
ENDIF
Example: IF ($u100 == 0)
There is one IF command while there are two ELSE
commands.
ELSE
ELSE
ENDIF
Example: IF ($u100 == 0)
FOR 10
ELSE
Only ELSE and ENDIF commands are specified between
FOR and NEXT commands.
ENDIF
NEXT
Summary of Contents for MONITOUCH V8 SERIES
Page 1: ...Reference Additional Functions V8series...
Page 57: ...2 Global Overlap 2 12 Please use this page freely...
Page 101: ...7 2 Panel Meter Extended 7 18 Please use this page freely...
Page 123: ...9 2 Acknowledge Function 9 18 Please use this page freely...
Page 127: ...10 RGB Display touch switch emulation 10 4 Please use this page freely...
Page 187: ...14 3 Addition of Titles to a CSV File Sampling Data 14 20 Please use this page freely...
Page 199: ...15 Item Show Hide Function 15 12 Please use this page freely...
Page 213: ...16 FTP Server 16 14 ls command This command is used to display the names of files and folders...
Page 221: ...16 FTP Server 16 22 Please use this page freely...
Page 233: ...17 2 Two Ethernet Ports 17 12 Please use this page freely...
Page 241: ...18 Network Camera 18 8 5 The Live view window is displayed...
Page 261: ...18 Network Camera 18 28 Please use this page freely...
Page 327: ...20 MES Interface Function 20 38 6 The table is created...
Page 369: ...22 Security Function 22 12 Please use this page freely...
Page 429: ...24 Tag 24 24 Please use this page freely...
Page 491: ...26 6 USB FDD Floppy Disk Drive 26 14 Please use this page freely...
Page 503: ...27 Ladder Transfer via USB or Ethernet 27 12 Please use this page freely...