Rotary Table Clamp and Clamp Feedback in PLC (Answered)

All things related to Centroid Oak, Allin1DC, MPU11 and Legacy products

Moderator: cnckeith

Post Reply
tblough
Community Expert
Posts: 3541
Joined: Tue Mar 22, 2016 10:03 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Boston, MA
Contact:

Rotary Table Clamp and Clamp Feedback in PLC (Answered)

Post by tblough »

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?

Code: Select all

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.


cncsnw
Community Expert
Posts: 4589
Joined: Wed Mar 24, 2010 5:48 pm

Re: Rotary Table Clamp and Clamp Feedback in PLC

Post by cncsnw »

That looks reasonable.


Post Reply