OK. I am having trouble getting an accurate transmission from the Cardinal Scale head. I set up my code like this outside the main loop:
D6000 := (H05);
ScaleWeight := 1;
IF M8002 THEN
M8423 := FALSE;
END_IF;
RS2 (ScaleWeight, D6000, 1, 17, K2, D6020);
And like this inside the loop :
IF NOT M8423 THEN
M8422 := TRUE;
ELSE
M8423 := FALSE;
END_IF
The problem is when i monitor the code while its running on the plc, the D6020 register is receiving random values that alternate.Am i missing a flag or bit device to make it work properly?