I'm trying to turn on any combination of 128 PLC outputs using 1 variable. I've never done this before so I wanted to see if any one has any suggestions. I would appreciate your input.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2015-09-03
Originally created by: scott_cunningham
One possibility (assuming your IO hardware is based on BOOL assignments) using ST language:
You may want to create a FB and use methods instead of a program with actions.
This is just one example. Check your hardware mapping - I have one hardware I work with (4 in / 4 out) that uses one BYTE to control the INs and one BTYE to control the OUTs - which would be super easy to turn all on at once (BYTE = 255). But that is not the norm.
I think trying to do this with LD would be a bit tedious.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
way #1 hardware.
put the ouputs behind a power supply module, so if you activate 1 output it will put power to the power module.
this is done a lot for emergency buttons, as it shuts down the power to a lot of outputs.
way #2software
in ST
output1:= (output[1] AND centraloutput )
I'm trying to turn on any combination of 128 PLC outputs using 1 variable. I've never done this before so I wanted to see if any one has any suggestions. I would appreciate your input.
Originally created by: scott_cunningham
One possibility (assuming your IO hardware is based on BOOL assignments) using ST language:
You may want to create a FB and use methods instead of a program with actions.
This is just one example. Check your hardware mapping - I have one hardware I work with (4 in / 4 out) that uses one BYTE to control the INs and one BTYE to control the OUTs - which would be super easy to turn all on at once (BYTE = 255). But that is not the norm.
I think trying to do this with LD would be a bit tedious.
way #1 hardware.
put the ouputs behind a power supply module, so if you activate 1 output it will put power to the power module.
this is done a lot for emergency buttons, as it shuts down the power to a lot of outputs.
way #2software
in ST
output1:= (output[1] AND centraloutput )
in ladder obvious same type.
Related
Talk.ru: 1