Page 1 of 1

relay board programming

Posted: Fri Jun 21, 2024 4:34 pm
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

Re: relay board programming

Posted: Fri Jun 21, 2024 6:35 pm
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).