Thank you for all your answers. It makes a lot more sense now.
I was modifying the code a bit, didn't think it would matter but I realize now that it will. Sorry.
The code calls an FC instead of setting a coil.
A M4.0
A M4.1
A M117.0
AN M17.7
A (
A I38.6
AN I3.7
O (
A M4.5
FP M231.6
)
)
JNB M001
CALL FC30
POS:=111
DEST:=112
ID:=1
ID_TYPE:=1
SYSTEM:=100
M001: NOP 0
\Rickard