Omron WS02-NSFC1-EV3 - 12-2007 Operation Manual page 103

Table of Contents

Advertisement

ON/OFF Valve Manipulator (Block Model 221)
88
$B32760=1;
WRITECMEM([R/L_SW],$B32760,1);
3: ON Operation Button
This button turns the valve ON manually and is enabled only when manual
mode is selected.
This button is created as a momentary ON/OFF Button using a Simple Rect-
angle (Type 3) and the display color is determined according to the following
table.
Display color
S1: A/M Switch Input (086)
Yellow
0
Red
0
Yellow
1
Yellow
1
The label displays "ON" in the rough font.
By setting the following Touch OFF Timing macro, operation will turn the valve
ON when touched. When the button is touched, tag ITEM S1 is referenced
and if S1 = 1, the message "Could not set." will be displayed and the setting
will not be accepted.
Likewise, if tag ITEM S4 = 1, the message "Could not set." will be displayed
and the setting will not be accepted.
READCMEM($B32760,[S1],1);
if($B32760==1)
MSGBOX("Could not set.","ON Operation",0);
RETURN(1);
endif;
READCMEM($B32760,[S4],1);
if($B32760==1)
MSGBOX("Could not set.","ON Operation");
RETURN(1);
endif;
$B32761=1;
WRITECMEM([S3],$B32761,1);
4: OFF Operation Button
This button turns the valve OFF manually and is enabled only when manual
mode is selected.
Section 6-13
S3: MAN Input (013)
0
1
0
1

Advertisement

Table of Contents
loading

Table of Contents