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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Literal Elements of Ladder Language<br />

Language element Includes Remark<br />

* Multiplication (signed)<br />

/ Division (signed)<br />

+ Addition<br />

- Subtraction<br />

> Arithmetic shift right<br />

& AND bit by bit<br />

^ EXCLUSIVE OR bit by bit<br />

| OR bit by bit<br />

= Simple assignment<br />

+= Add and assign<br />

-= Subtract and assign<br />

&= AND bit by bit and assign<br />

^= EXCLUSIVE OR bit by bit<br />

and assign<br />

|= OR bit by bit and assign<br />

4.5 Additional Information on Literal Elements<br />

4.5.1 Priority of Operators<br />

4.5.1.1 Priority of the Unary Operators<br />

Unary operators have higher priority than binary operators.<br />

Priority Operator Description<br />

Highest [ ] Indexing<br />

.& «Address of» operator<br />

- Negation<br />

Lowest ~ Bit-by-bit inversion<br />

4.5.1.2 Priority of Binary and Comparison Operators<br />

The binary and comparison operators have higher priority than the assignment operators.<br />

Priority Operator Description<br />

Highest P0 * Multiplication<br />

/ Division<br />

P1 + Addition<br />

- Subtraction<br />

P2 >> Arithmetic shift left<br />

=< Comparison operators<br />

en-938846/5 4 - 5<br />

4

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

Saved successfully!

Ooh no, something went wrong!