Yes that would make sense. That's a relay of some sort, it looks like all the contacts are labled Normally Open, with an R1 and R2? Your EStop will certainly need to be in a safe state for your motor to run if the machine was designed properly.
Personally,
I would break the code up in to these routines.
Input
Motor
Output
I don't like mapping IO around in the actual code. Then you should be able to see if the code is actually trying to turn the output on or if the code isn't working.
My gut tells me the card is not wired correctly or the wrong type.
Why would you put 1 line of code into 3 routines? Its a simple start / stop circuit.
As others have said, check the OP Card voltage matches that of the contactor. Also check the contactor A2 is grounded.
I think my NC estop energizing this device? i guess? Because there is label on this device CR60044 AND in my electrical diagram, e-stop energized this coil
Also, I usually see test programs get mashed into real programs and I don't like seeing IO randomly dabbled around the code.
Backing up one level at the control card. Do you have 24VDC feeding the card? If not then the issue is with the estop.
Backing up one level at the control card. Do you have 24VDC feeding the card? If not then the issue is with the estop.