Johnny T
Member
Hi
This is the last one of my long list of questions for now...
Yesterday I was doing a quick job on an S5 PLC and entered the following code:
C DB 24
L DBW 241
L KF+6
XF
T FW 222
This crashed the PLC and put it into stop mode??? Anyone any ideas why??
The DB 24 exists and has a DBW 241. FW222 is available in this PLC as FW 225 is being used elsewhere in the program. The code was in PB99 which was downloaded correctly and being called by OB1.
Basically I was trying to multiply the contents of DBW241 (which were only 12 so not going to cause an overflow or anything) by 6 and transfer the result into FW 222...
Any ideas why this should cause a crash?
Cheers
JT ;-)
This is the last one of my long list of questions for now...
Yesterday I was doing a quick job on an S5 PLC and entered the following code:
C DB 24
L DBW 241
L KF+6
XF
T FW 222
This crashed the PLC and put it into stop mode??? Anyone any ideas why??
The DB 24 exists and has a DBW 241. FW222 is available in this PLC as FW 225 is being used elsewhere in the program. The code was in PB99 which was downloaded correctly and being called by OB1.
Basically I was trying to multiply the contents of DBW241 (which were only 12 so not going to cause an overflow or anything) by 6 and transfer the result into FW 222...
Any ideas why this should cause a crash?
Cheers
JT ;-)