Reference Manual

16-Axis MACRO CPU Software Reference Manual
16-Axis MACRO Station MacPLCCs 59
16-AXIS MACRO CPU STATION MACPLCCS
The Open MACPlcc compiler in PeWinPro is used to compile the MACRO PLCC program that runs in
the 16 axes MACRO CPU. It is designed to handle a limited version of the standard PMAC PLCC
programming commands and it will include some new ones. The MACPlcc code is run in the
background process of the 16-Axis MACRO CPU. The additions and limitations to the standard PMAC
PLC commands are defined below.
Requirements
Turbo PMAC CPU with version 1.939 and greater and the 16-Axis MACRO station. It is restricted to 8K
of PLCC memory and from X/Y:$700 - $13FF) of data memory.
Arithmetic Data Types
1. Integer - 24 bit signed integer (unsigned is not available)
2. Integer – 1, 4, 8, 12, 16, 20 bit (unsigned or signed)
MACRO MI Integer Variables (n = 0 – 1099)
1. MACRO MIn-Variable – Converted to 1 to 24 bit signed/unsigned integer variable. A function of
MI variable.
2. MACRO MI[Index Exp.]-Array of MI Variables
Indexes into MIn[] arrays are limited to 0 - 1999. On a read of the index value outside this range, the
returned value is zero. On a write of the index value outside this range, no value is written.
MACRO MM and MP Integer Variables (n = 0 – 511)
1. MACRO MMn-Variable – Assumed to be defined as
MMn-><X/Y:Addr,offset,width,SignType>.
2. MACRO MPn-Variable – 24 bit signed integer variable.
3. MACRO MM[Index Exp.]-Array to MM Pointer Variables
4. MACRO MP[Index Exp.]-Array of 24 bit signed Integer MP Variables
Index expression into the MMn[] and MPn[] arrays are forced to a modulo 512
MACROPlcc Ln Integer Variables (n = 0 – 511)
1. PLCC Ln-Variable – Address must be defined. (Accessed with inline code).
2. PLCC Ln[Index Exp.]-Array 24 bit signed integer data – Address must be defined.
Index expressions into the Ln[] arrays are forced to a modulo of the size of the array.
Direct Memory Addressing for Integer Ln & Ln[] Variable Definitions
MACROPlcc Ln->X/Y:Address[size] – Accesses entire 24 bit integer data value. The array size range is 2
– 8192 and must be a power of two. If the definition is put after the OPEN MACPlcc, the size range is
limited to 2 – 512. This is the recommended limitation.
The current PLCC Ln-> definitions which access portions of the 24 bit word are still available.
Standard MACRO Program Commands
1. OPEN MACPLCC begins the MACPlcc the program.
2. CLOSE – closes MACPlcc the program.
3. RETURN – Returns from PLCC program.
4. IF, AND, OR, ELSE, ENDIF, WHILE, ENDW