Download Siemens S7-400 Technical data
Transcript
Comparison Instructions 2.3 CMP ? D Compare Double Integer Symbols CMP == D CMP >D CMP >= D IN1 IN1 IN1 IN2 IN2 IN2 CMP <> D CMP <D CMP <= D IN1 IN1 IN1 IN2 IN2 IN2 Parameter Data Type Memory Area Description box input BOOL I, Q, M, L, D Result of the previous logic operation box output BOOL I, Q, M, L, D Result of the comparison, is only processed further if the RLO at the box input = 1 IN1 DINT I, Q, M, L, D or constant First value to compare IN2 DINT I, Q, M, L, D or constant Second value to compare Description CMP ? D (Compare Double Integer) can be used like a normal contact. It can be located at any position where a normal contact could be placed. IN1 and IN2 are compared according to the type of comparison you choose. If the comparison is true, the RLO of the function is "1". It is linked to the RLO of a rung network by AND if the compare element is used in series, or by OR if the box is used in parallel. Status word writes: 2-4 BR CC 1 CC 0 OV OS OR STA RLO /FC x x x 0 - 0 x x 1 Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01