1. At the beginning of your main routine add a line turning OFF Test_Bit_45 every scan
2. In the routine just after your motor control line add a check of the Stop button input & turn ON Test_Bit_45 if on.
A. If Test_Bit_45 does not come on then the routine is not being scanned
B. If Test_Bit_45 is always on, even when you press the Stop PB, then there is a wiring problem bypassing the Stop button NC contact
C. If Test_Bit_45 responds correctly, but your motor output stays on, then search your program for all occurrences of the motor output & see if it is controlled a second time later in your program
D. If Test_Bit_45 responds correctly & the motor output responds correctly while monitoring online, then the PLC output may be faulty, or the wiring in the panel is wrong.
EDIT: Didn't notice the latch Steve Bailey just noticed while I was typing, which means response "C" needs modified.
Also, I would not use a latched output to control a motor. You would have to add check if the MCR was off, E-Stop was activated, motor OLR was tripped, Tank level OK, safety covers closed, First Scan, etc. & unlatch it. I only use latched bits on items I want the PLC to remember if the power or Run mode gets cycled & not controlled outputs.