ACR-MOTIONMAX Installation Guide
9
The Dim DEF (300) parameter in the
Sys.8k
should not be changed and is used in the AcroBasic file
progo.8k to allow all bits to called with a Variable Name. No Punctuation is allowed in the variable name
and must be proceeded with #Define statement as shown. See Prog0.8k header.
Example & Format:
REM Input Bit Definitions
#DEFINE INPResetButton BIT0
#DEFINE INPFeedHoldButton BIT1
M Code Sequence Examples:
ACR-MOTIONMAX MCodes (Bits 1920 to 2047) = M00 to M127
ACR-MOTIONMAX uses these bits to tell the AcroBasic Program which MCode Subroutine to Call.
Do not use any of these bits in your AcroBasic Programs they are reserved for ACR-MOTIONMAX
MCodes.
MCodes are triggered by Setting a MCode Bit (Bits 1920 to 2047) and an M Strobe Bit (150) signal bit.
Then the AcroBasic Program Prog1 will parse and call the appropriate MCode subroutine for execution and
return setting the MDone (Bit 147) Signal. ACR-MOTIONMAX will not execute another MCode or Gcode
if MDone = 0. See Prog1.8k line 6
M Code Sequence: M08 … Coolant On
[ACR-MOTIONMAX Sequence] [AcroBasic Action]
1) Sets bit 1928 M08 does nothing
2) Sets Bit 150 M Strobe 3) Parses the MCode bit and Calls Subroutine to be serviced
4) Returns with Mdone=1 and the Mstrobe=0 and Bit 1928=0
5) Continues
S Code Sequence: S2000
[ACR-MOTIONMAX Sequence] [AcroBasic S Code Handler Action]
1) Writes Dac5 Val to P6480 does nothing
2) Sets the Gear Range Bits
3) Sets the S Strobe Bit 151 4) Processes gear change if required
5) Enables Axis if was running previously with new Dac Value
6) Waits for Spindle to get up to Speed
7) Returns with S Done=1 and the S Strobe=0
T Code Sequence: M6 T2
[ACR-MOTIONMAX Sequence] [AcroBasic T Code Handler Action]
1) If new T Code is different Does nothing
From the Current tool then
Set 159 (ToolChangeRequest)
2) Set 1926 (M6 bit)
3) Set new Target into P6775
4) Set M Strobe ( Bit 150)
5) Set T Strobe (Bit 152) 7) Service M6 Code if ToolChangeRequest = 1
8) Clear ToolChangeRequest and M/T Strobe =0
9) Return with M/T Done Bits = 0.
Chapter 2 Setting up Installing ACR-MOTIONMAX
Install ACR-MOTIONMAX with the Install Program. (Install_ACR-MOTIONMAX.exe)