beautypg.com

ElmoMC SimplIQ Software Manual User Manual

Page 60

background image

SimplIQ

Software Manual

4BThe

SimplIQ

User Programming Language

MAN-SIMSW (Ver. 1.4)

5-31

Routine Name Priority Activated by

Mask (MI)

AUTO_I2

9

Called when a digital input #2 configured to
the “GPI” (General Purpose Input) function is
activated.*

256 (0x100)

AUTO_I3

10

Called when a digital input #3 configured to
the “GPI” (General Purpose Input) function is
activated.*

512 (0x200)

AUTO_I4

11

Called when a digital input #4 configured to
the “GPI” (General Purpose Input) function is
activated.*

1024 (0x400)

AUTO_I5

12

Called when a digital input #5 configured to
the “GPI” (General Purpose Input) function is
activated.*

2048 (0x800)

AUTO_I6

13

Called when a digital input #6 configured to
the “GPI” (General Purpose Input) function is
activated.*

4096
(0x1000)

AUTO_HM

14

Called when a main homing sequence is
completed.**

8192
(0x2000)

AUTO_HY

15

Called when an auxiliary homing sequence is
completed. ***

16,384
(0x4000)

* Refer to the IL command section in the

SimplIQ

Command Reference Manual.

** Refer to the HM command section in the

SimplIQ

Command Reference Manual.

*** Refer to the HY command section in the

SimplIQ

Command Reference Manual.

Table

5-1: Automatic Subroutines and Their Priorities

All automatic routines except AUTOEXEC are activated only if a program is running.

Example:

##LOOP

An

endless

loop.

goto##LOOP

#@AUTO_I3

Subroutine

definition.

… Subroutine

body.

return

End of subroutine.

In this program, the endless loop in the first two lines of the routine is intended to make the
program run forever, so that the automatic routine will be able to handle the digital input #3
event.

The #@AUTO_I3 routine will be called if digital input #3 is sensed and not masked. Digital
input #4 will not invoke any automatic action in the user program, because no #@AUTO_I4
routine is defined to handle a digital input #4 event. The user has the option to make an
explicit call of an automatic routine, if desired. The syntax for an auto-routine call is the
same as that of a user function.