Merganzer
Member
Hi,
Working with an AB Micrologix 1500, RSLogix 500 programming.
I'm trying to write subroutines to control a 3 floor elevator system. Main program file will direct the PLC to a particular subroutine file when a particular floor button is pressed (ie.: 3rd floor goto button sends PLC to 3rd floor subroutine).
The problem I am having is that it doesnt seem like the PLC likes to unlatch bits within a subroutine. Im setting a bit within the subroutine to start my drive at 60Hz, then unlatch that bit at a certain point and latch another bit to change the drive to 35Hz. The drive will contine to operate at 60Hz even though there has been an input to unlatch that bit.
Suggestions?
Working with an AB Micrologix 1500, RSLogix 500 programming.
I'm trying to write subroutines to control a 3 floor elevator system. Main program file will direct the PLC to a particular subroutine file when a particular floor button is pressed (ie.: 3rd floor goto button sends PLC to 3rd floor subroutine).
The problem I am having is that it doesnt seem like the PLC likes to unlatch bits within a subroutine. Im setting a bit within the subroutine to start my drive at 60Hz, then unlatch that bit at a certain point and latch another bit to change the drive to 35Hz. The drive will contine to operate at 60Hz even though there has been an input to unlatch that bit.
Suggestions?