1484 HEIDENHAIN Technical Manual MANUALplus 620
Name convention
for symbolic PLC
operands
The first two letters at the beginning of the symbolic operands give
information about the setting and resetting behavior:
For a list and description of all PLC operands see "Overview of the PLC
Operands" on page 604.
Programming with
the symbolic API
In the definition file ApiMarker.def, associated symbolic PLC operands are
structured into five groups with the #TYPEDEF command:
PlcApiGeneral
PlcApiOmg
PlcApiChannel
PlcApiAxis
PlcApiSpindle
The #TYPE command assigns an abbreviated structure symbol to each of the
five operand groups:
PlcApiGeneral = ApiGen
PlcApiOmg = ApiOmg
PlcApiChannel = ApiChn
PlcApiAxis = ApiAxis
PlcApiSpindle = ApiSpin
You address individual elements of these five structures by entering the
structure symbol, followed by a period as a separator, and then the name of
the operand, e.g. ApiSpin.NN_SpiOverrideInput.
The structures ApiOMG, ApiChn and ApiAxis are accessed by indexes, e.g.
PlcApiAxis[x].NN_AxInMotion.
Example of program:
NP_GenKeyCode
Set by:
NC
Reset by:
PLC
Operand Data direction Setting or resetting behavior
NN_xxx NC –> PLC Set by NC, reset by NC
NP_xxx NC –> PLC Set by NC, reset by PLC
PP_xxx PLC –> NC Set by PLC, reset by PLC
PN_xxx PLC –> NC Set by PLC, reset by NC