relay board programming

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
curiousMike
Posts: 75
Joined: Tue Sep 24, 2019 3:05 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

relay board programming

Post by curiousMike »

Is there a way to get the output relays to mirror a parameter? For example, if I want an external indicator light to light up in sync with a limit switch can a relay be programed to drive that indicator.? If so, is there documentation on this? I know this can be done by wiring the switch via an optocoupler but I If do not need the relays for any other function perhaps there is another way.

Thanks in advance


cncsnw
Community Expert
Posts: 4619
Joined: Wed Mar 24, 2010 5:48 pm
Acorn CNC Controller: No
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No

Re: relay board programming

Post by cncsnw »

What do you mean by "mirror a parameter"?

If you want a given output relay to be on whenever a limit switch is tripped, then you could add a line in the PLC program to do that. No "parameters" would be involved.

Exactly what that line would look like depends on what else you have in your PLC program, and how your limit switch input(s) are defined. But it could be something like:

Code: Select all

; in the definitions section, but outside the "wizardregion":
MyIndicatorRelay  IS OUT33

; in MainStage, again outside any "wizardregion":
IF !ThirdAxisPlusLimitOk THEN (MyIndicatorRelay)
That would turn on OUT33 (first output on a PLC expansion board) if a dedicated Z+ limit input is tripped (open).


Post Reply