User's Manual
Geo MACRO Drive User and Reference Manual
Setting Up Discrete Inputs and Outputs 99
SETTING UP DISCRETE INPUTS AND OUTPUTS
Inputs and Outputs
For the I/O Geo MACRO drive, use the 24-bit node register of the activated node. Using the I/O is
accomplished by writing to a node register to activate the desired outputs and reading the same node register to
read the status of the inputs. In other words, the one 24-bit node register is used for both inputs and outputs.
This is efficient because it allows the 48-bits of information to be processed using one 24-bit word and
minimizes the number of nodes needed for the IO data transfers for each MACRO device. The only drawback
to this technique is that the user will have to keep track of the status of the outputs (see example).
Example: If node 2 is activated at both the Master and MACRO Device, make the following definitions
to read and write to the inputs and outputs.
M3000->X:$78420,0,24 ;Actual Input/Output Word
M980->Y:$10F0,0,24 ;Input Image Word1, free user memory space
M982->Y:$10F1,0,24 ;Output Image Word1, free user memory space
M3012->X:$78420,8,4 ;four inputs
M3013->X:$78420,12,4 ;four outputs
Open PLC1 Clear
M980=M3000 ; Input Image Word equals Actual Input Word
Process Inputs and Build image output word (M982) – User code
M3000=M982 ; Set Actual Output Word equal to Output Image Word1
Close
If using another node, access them at the following locations:
User Node IO Word Address Bit # Function
2 X:$078420,0,24 Bit 00 Halls W Motor 1
3 X:$078424,0,24 Bit 01 Halls V Motor 1
6 X:$078428,0,24 Bit 02 Halls U Motor 1
7 X:$07842C,0,24 Bit 03 Halls T Motor 1
10 X:$078430,0,24 Bit 04 User Flag Motor 1
11 X:$078434,0,24 Bit 05
18 X:$079420,0,24 Bit 06
19 X:$079424,0,24 Bit 07
22 X:$079428,0,24 Bit 08 Input 1
23 X:$07942C,0,24 Bit 09 Input 2
26 X:$079430,0,24 Bit 10 Input 3
27 X:$079434,0,24 Bit 11 Input 4
34 X:$078420,0,24 Bit 12 Output 1
35 X:$07A424,0,24 Bit 13 Output 2
38 X:$07A428,0,24 Bit 14 Output 3
39 X:$07A42C,0,24 Bit 15 Output 4
42 X:$07A430,0,24 Bit 16
43 X:$07A434,0,24 Bit 17
50 X:$07B420,0,24 Bit 18
51 X:$07B424,0,24 Bit 19 User Flag Motor 2
54 X:$07B428,0,24 Bit 20 Halls T Motor 2
55 X:$07B42C,0,24 Bit 21 Halls U Motor 2
58 X:$07B430,0,24 Bit 22 Halls V Motor 2
59 X:$07B434,0,24 Bit 23 Halls W Motor 2