01-16-2020 04:31 PM
How would you create the attached ladder logic code in labview???
01-16-2020 05:38 PM
Ladder logic is basically boolean operations.
THIS or THAT. THIS AND THAT. THIS and NOT THAT.
Convert the ladder logic structure to their boolean equivalents.
01-16-2020 06:04 PM
Any suggestions as to how?
01-16-2020 06:24 PM
Pencil and paper. Map it out.
01-16-2020 07:17 PM
Alright well this is what I had (see attached pic).
It works fine as long as I have only 1 set of motor controls. But consider the case where I need to control multiple motors....
When there are multiple motor controls, any motor control value change affects all motor statuses. The desired functionality would be each motor status boolean to be affected only by their respective motor controls.
What do you have for me now RavensFan!
01-16-2020 10:54 PM - edited 01-16-2020 10:57 PM
You don't want an event structure. If this was a PLC, they run continuously, they don't operate off events.
All you need are some boolean logic, and use a shift register to keep track of the motor contactor relay being down.
Duplicate that as many times as necessary. (Ideally, the boolean section would be in a subVI if all motors are using the same latching relay logic.)