Modification of the PLC program.
Dear forum, please tell me the beginner how to create your M-function on Heidenhaein iTNC 530 rack.
Similar Threads:
Modification of the PLC program.
M-function must be created in mfunct.tab?
According to the documentation, as I understand it, is an M-function that can assign a user in this table.
The code of an M function is transferred to the PLC before or after execution of the NC block (see mfunct.tab, mgroup.sys and msplit.sys).
M89 to M299 are reserved for the NC, and several M functions between M00 and M88 have fixed meanings for the NC. The other M functions are freely available.
In the PLC, evaluate the M functions that have no fixed meaning for the NC. When an M function is transferred to the PLC, the code of the M function is saved in W260 and the strobe marker M4072 is set. Set M4092 in order to report the execution of the M function. The next NC block is run. M4072 is reset by the NC.
Csg67,You may suggest or give an example of how to organize communication with CNC drive? I need to pass the new position of the actuator. At present the machine using the M43 machine moves to the starting position. If I understand correctly, it is implemented here.
Attachment 350212
I can not find a link between MP4210.10 and drive. As this position is transmitted to the drive? I can make your PLC program.
Module 9041 - Read axis coordinates
Module 9041 reads the axis coordinates from the control loop for all NC axes. Different values can be loaded: Actual value, nominal value, servo lag, distance-to-go, ...
All values, except for the distance counter, are saved in the format 1/10000 mm in double words beginning at the programmed target address. The number of double words that are written to varies depending on the configuration.
Call:
PS K/B/W/D <Target address Dxxx>
PS K/B/W/D <Coordinate type>
0 = Actual values in the datum system
1 = Nominal values in the datum system
2 = Actual values in the reference system
3 = Following error
4 = Distance-to-go
5 = ...
CM 9041
fifth axis REF pos -> D16:
PS D0
PS K+2
CM 9041
Participate in PLC courses!