ACR-MOTIONMAX Installation Guide
18
Step 11. Edit the Control Initialization Subroutine
When Program 1 starts, it looks at the Control Signal bit 145 (Control Initialized) to see if the machine
has been initialized. If this Bit = 0 Program 0 will call the Subroutine at Line 3000 and set the bit when it
Exits.
The User should place any initialization Code in this function to tell ACR-MOTIONMAX the Machine is
Ready to Run. As the Diagram below shows the program will not start until the following 2 conditions are
met.
1). ACR-MOTIONMAX is up and running Bit 143 =1 (Control Ready).
2). The AcroBasic Has initialized Bit 145 =1 (Control Initialized)

Example:

REM ***************************************
REM *** CONTROL INITIALIZATION FUNCTION ***
REM ***************************************
30000 SET OUTSpindleReady: PON
30001 SET OUTDrivesReady
30002 SET OUTSpindleEStop: P6480= 0: AXIS5 OFF: CLR 190
30003 SET CTLInitialization

Insert Your Machine Initialization Code Here

30086 CLR 170: CLR 171: CLR 172: CLR 173: CLR 174: CLR 175: Rem Clear Strobes & Done bits
30087 P4156= 0: P4157= 0: P4158= 0: P4159= 0: REM CLR MCODES
30088 SET CTLMDone: SET CTLSDone: SET CTLTDone: CLR CTLMStrobe: P10= 0
30089 CLR CTLSStrobe: CLR CTLTStrobe: CLR CTLUserErrorReq
30090 RETURN

Progam 1

Yes
( Line 6 )
Control
Ready
Bit 143
= 1 ?
Control
Initialized
Bit 145
=1 ?
( 30000 )
Do Control Initialazation
Line 5Line 4
NoYes
No