11 - 55 11 - 55
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
• <event number> is used as a number for specifying whether enabling or disabling the
defined event to occur, for creating an event, and for waiting for an event to occur. Treat
<event number> as the common number between the BASIC programs.
A value ranging 0 to 63 can be specified to <event number>, and <event number> is
shared with the event by the communication module’s expansion relay (EM).
• If an event number that has been already defined is specified, the contents of the previous
definition become invalid and the newly defined contents become valid.
Defining an event by the communication module’s expansion relay (EM)
• Defines an event that is generated when the communication module’s expansion relay
(EM) changes from OFF ON. In this case, be sure to specify <device> and <event
number>.
• The event defined by this method is generated by the ZSIGNAL instruction and by the
change of the target bit device (OFF ON). This event is used for resuming execution of
a program is waiting for the event to occur by the ZSIGNAL instruction or by a change of
the target bit device, after enabling the event to occur by the ZEVENT instruction.
• <event number> is used as a number for specifying whether enabling or disabling the
defined event to occur, for creating an event, and for waiting for an event to occur. Treat
<event number> as the common number between the BASIC programs.
A value ranging 0 to 15 can be specified to <event number>, and <event number> is
shared with the event for synchronization between the programs.
note
Only 0 to 15 can be specified for the event number of an event from the communication
module’s expansion relay (EM). An error occurs if 16 to 63 is specified.
• Specify the communication module’s expansion relay (EM), which generates the defined
event at the transition of OFF to ON, to <device>. The following shows how to specify the
EM:
"EM "
Specify 0 to 1023 for the number of
the expansion relay.
Attach 0 at the beginning for the device
numbers 0 through 999 and always use
four digits.
"EM0001"
EM1
"EM0260"
EM260
Always
set 'EM'.