I'm working on getting clamping feedback working in my PLC. This is what I have at this point. Is there a better way to verify the rotary table clamp feedback?
IN PLCMSG.TXT
...
41 5041 Warning: Rotary Table Not Clamped
...
IN PLC PROGRAM
...
ROTARY_NOT_CLAMPED_MSG IS 10498;(2+256*41)
...
RotaryTableClamped IS INP13
...
RotaryTableClamp IS OUT9
...
ClampTimer IS T20 ; Timer to check clamp feedback signal
...
;==============================================================================
FourthAxisStage
;==============================================================================
IF SV_MACHINE_PARAMETER_800 == 1 THEN SET ClampEnabled_M, ClampTimer = 1000
IF SV_MACHINE_PARAMETER_800 != 1 THEN RST ClampEnabled_M
; Rotary Table Clamp on/off
; RTB 1/14
IF ClampEnabled_M && M10 THEN (RotaryTableClamp), SET ClampTimer ; turn on clamp and wait 1 second to check it is on
IF !RotaryTableClamp THEN RST ClampTimer
IF ClampTimer && !RotaryTableClamped THEN InfoMsg_W = Rotary_Not_Clamped_MSG, RST ClampTimer
...
Last edited by tblough on Wed Jan 16, 2019 10:42 am, edited 1 time in total.
Cheers,
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)