Download Print this page

Omron NS Reference Manual page 42

Hide thumbs Also See for NS:

Advertisement

Section2 Functions
NS series Macro Reference
Example
Reference
Only one message box can be displayed using MSGBOX. If executing MSGBOX
with displaying other message box, new message box is not displayed and "1" is
returned as return value.
Example: making two bit lamps
Lamp 1
Lamp 2
Suppose macro of lamp1 is executed first. When changing the value of $B0, the
message box of lamp 1 is displayed. Message box of lamp 2 is not displayed and
value "1" is stored in $W1.
If Buzzer Sound is set ON or OFF at PT tab in the system menu and STOP or
EXCLAMATION is specified for the icon, buzzer will be sounded when displaying
the message dialog.
$W0=MSGBOX ("Start Test", "TEST", H31);
'H31:[Yes]/[No] button, Display QUESTION mark
IF($W0==2)
ELSE
ENDIF
As you set above, message dialog is displayed below
address
$B0
$B0
'Write processing if you select "Yes"
'Write processing if you select "No"
macro
$W0=MSGBOX("message1", "title1", H31);
$W1=MSGBOX("message2", "title2", H31);
22

Advertisement

loading

This manual is also suitable for:

Ns-series