Delta AX Series Instruction Manual page 433

Motion controller
Hide thumbs Also See for AX Series:
Table of Contents

Advertisement

AX- Ser i es Mo t i o n Co n t r o l l er I n s t r u c t i o n s Ma n u a l
Function
How to use MC_WriteBoolParameter_DML to write the number of an EtherCAT object dictionary
Use the SHL instruction to shift the data length of the object dictionary where a value is to be written to the left by
24 bits
Use the SHL instruction to shift the index of the object dictionary where a value is to be written to the left by 8 bits
Add up the above parameters and the sub-index.
See the reference formula as follows.
diParameterNumber: =-DWORD_TO_DINT (SHL (TO_DWORD (object dictionary data length), 24) + SHL
(TO_DWORD (object dictionary index), 8) + object sub-index);
To write a value in an axis parameter, refer to the axis parameter AXIS_REF_DML (FB) and fill in its number in the
diParameterNumber input parameter.
Troubleshooting
When an error occurs in the execution of the instruction, bError will change to True. To confirm the current error state,
see the Error Code in ErrorID.
Programming Example
For the example, refer to the programming example of the MC_WriteParameter function block.
For function block Axis parameters, enter that of the positioning axis.
Ch a p t er 2
4 2 8

Advertisement

Table of Contents
loading

Table of Contents