Hello
I need system variable of current height offset #4121 and diameter offset #4202 .
I need these values in SRC file as #4120 tool number is sv_tool_number
I didn't find in plc manual
Thanks
Aamir
Current Height and Diameter offset system variable
Moderator: cnckeith
Re: Current Height and Diameter offset system variable
Those values are not available in any (currently-existing) PLC system variables.
The CNC G code program, either directly or through a CNC macro, could put those values into Machine Parameters whenever they change. The PLC program could then read them from SV_MACHINE_PARAMETER_nnn variables. However, the parameter value at any given moment would only be what was last stored; not necessarily what is current.
For example, if you added to your M3 and M4 spindle-start macros code like:
... then parameters 701 and 702 would get set to the current H and D values, every time the spindle is started in auto mode.
However, if the CNC program started the spindle before it set the desired H and D codes, then your PLC program would have the wrong numbers.
The CNC G code program, either directly or through a CNC macro, could put those values into Machine Parameters whenever they change. The PLC program could then read them from SV_MACHINE_PARAMETER_nnn variables. However, the parameter value at any given moment would only be what was last stored; not necessarily what is current.
For example, if you added to your M3 and M4 spindle-start macros code like:
Code: Select all
IF #50001 ; wait for execution to reach this point before updating parameters
G10 P701 R#4121
G10 P702 R#4122
; continue with normal M3/M4 actions
However, if the CNC program started the spindle before it set the desired H and D codes, then your PLC program would have the wrong numbers.
-
- Posts: 100
- Joined: Fri Jun 10, 2011 8:31 am
- Allin1DC CNC Controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
Re: Current Height and Diameter offset system variable
Thanks i am working on a Turret punch whose ramp height need control as tool wear we put -/+ value and ramp is stop according to the height offset or diaoffset of specific tool#
I load G43 H#4120 in M6 Macro and need H and D value after tool change.So i hope this works
Thanks
Video is below for the reference
I load G43 H#4120 in M6 Macro and need H and D value after tool change.So i hope this works
Thanks
Video is below for the reference