ACC-72EX User Manual
Software setup
87
Power PMAC Setup for Using ACC-72EX
Power PMAC has full support for ACC-72EX and all its fieldbus communication variations. Due to built-
in data structures for accessing ACC-72EX dual ported RAM from Power PMAC, no additional software
is required for memory mapping and/or identification in comparison to Turbo PMAC.
This section of the manual covers Power PMAC’s built in data structures for ACC-72EX in addition to
providing examples for header files, start-up and handshaking PLCs.
ACC72EX[
i
]. Non-Saved Data Structures
All of the interactions with ACC-72EX can be achieved through data structures defined specifically for
ACC-72EX in Power PMAC firmware. The following structures allow access to the DPRAM in bit, byte,
2-byte and 4-byte wide access modes. The bit-wise read and write is only supported through
Acc72EX[
i
].Udata16[
j
] data structure.
Acc72EX[
i
].Data8[
j
]
Description:
Dual Ported RAM “unsigned 8-bit integer” data array element
Range:
0 .. 2
8
-1
Units:
address dependent
Power-on default:
address dependent
Acc72Ex[
i
].Data8[
j
]
is the “
j
th” unsigned 8-bit integer data array element in the
Acc72EX[
i
]
dual-ported
RAM. Each of these elements occupies one byte in the DPRAM, and is located starting at
j
addresses past
the beginning of the buffer (which is located at the address in
Acc72EX[i].a
). This array is defined based
upon the Hilscher ComX memory map.
Index values
j
in the square brackets can be integer constants in the range 0 to 524,287, or local L-
variables. No expressions or non-integer constants are permitted. The size of the DPRAM is dependent on
the ACC-72EX communication option and installed Hilscher ComX module.
Acc72Ex[
i
].Data8[
j
]
is located in the same registers as
Acc72Ex[
i
].Idata16[
j/2
]
,
Acc72Ex[
i
].Udata16[
j/2
]
,
Acc72Ex[
i
].Idata32[
j/4
]
,
Acc72Ex[
i
].Idata32[
j/4
]
and
Acc72Ex[
i
].Udata32[
j/4
]
. It is the user’s responsibility to prevent possible multiple uses of the same
register.
In C, this element should be accessed through the C functions ACC72EX_GetData8 and
ACC72EX_SetData8 described later in this manual.
Acc72EX[
i
].Idata16[
j
]
Description:
Dual Ported RAM “signed 16-bit integer” data array element
Range:
-2
15
.. 2
15
-1
Units:
address dependent
Power-on default:
address dependent
Acc72Ex[
i
].Idata16[
j
]
is the “
j
th” signed 16-bit integer data array element in the
Acc72EX[
i
]
dual-ported
RAM. Each of these elements occupies two bytes in the DPRAM, and is located starting at
2*j
addresses
past the beginning of the buffer (which is located at the address in
Acc72EX[
i
].a
). This array is defined
based upon the Hilscher ComX memory map.
Index values
j
in the square brackets can be integer constants in the range 0 to 262,143, or local L-
variables. No expressions or non-integer constants are permitted. The size of the DPRAM is dependent on
the ACC-72EX communication option and installed Hilscher ComX module.