15.07.2013 Views

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.2.7.4 Testing the Bits of a Byte, Word or Long Word<br />

These sequences are used to test all the bits of variable %I900.W.<br />

Sequence 1 - Initialise Index %V100.B<br />

Sequence 2 - Test Each Bit of %I900.W<br />

Programming in Ladder Language<br />

Arithmetic shift left by 1 of the value contained in %V100.B then logic AND with %I900.W (if %V100.B == 0, test bit<br />

0 of %I900.W; if %V100.B == 1, test bit 1 of %I900.W and so forth). Result different from 0. The TRUE coil is activated<br />

if the bit tested is equal to 1 and the FALSE coil is activated if the bit tested is equal to 0.<br />

en-938846/3 5 - 25<br />

5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!