Skip to main content

Example - Ladder Diagram

INT​


The INT instruction converts a REAL value, S, into a WORD value and saves the conversion in an assigned signed WORD data register, D.

Ladder Diagram Example​


When the contact, M0.0, is powered ON (1), the value of the REAL data register, D0, 2.156300, is converted into signed binary notation.
The value of the conversion, 2, is saved in the WORD data register, D3.


Memory Monitor​

INTP​


The INTP one-shot instruction converts a REAL value, S, into a WORD value and saves the conversion in an assigned signed WORD data register, D.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example​


When the contact, M0.1, is powered ON (1), the value of the REAL data register, D10, -1.657830, is converted into signed binary notation.
The value of the conversion, -1, is saved in the WORD data register, D13.


Memory Monitor​