Skip to main content

Example - Ladder Diagram

FLT


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

Ladder Diagram Example


When the contact, M3.5, is powered ON (1), the value of the WORD data register, D80, -12,345, is converted into float notation.
The value of the conversion, -12345.000000, is saved in the REAL data register, D82.


Memory Monitor

FLTP


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

Ladder Diagram Example


When the contact, M3.6, is powered ON (1), the value of the WORD data register, D85, 25,345, is converted into float notation.
The value of the conversion, 25,345.000000, is saved in the REAL data register, D87.


Memory Monitor