Inst ToolsInst ToolsInst Tools
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: Converter Instruction in Siemens PLC Programming
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Converter Instruction in Siemens PLC Programming

Converter Instruction in Siemens PLC Programming

Last updated: March 4, 2021 1:11 pm
Editorial Staff
PLC Tutorials
No Comments
Share
3 Min Read
SHARE

Let’s study the working of converter instruction in Siemens PLC programming using different ladder logics and programs.

Contents
Converter Instruction in PLCBlock DescriptionRound to double integer:Truncate double integer part:Ceiling:Floor:Ladder LogicLadder Description:Network 1:Network 2:Network 3:Network 4:

Converter Instruction in PLC

Converter Instruction in Siemens PLC Programming

Block Description

Round to double integer:

It reads the input floating point value and converts it to double integer and round to nearest integer. The result is output by the parameter OUT.

Rounding to Nearest Integer in PLC

Truncate double integer part:

It reads the input floating point value and converts it to double integer and round to zero mode. The result is output by the parameter OUT.

Truncate Double Integer Part in PLC Logic

Ceiling:

It reads the input floating point value and converts it to double integer. The result is the lowest integer which is greater than the floating point number i.e  Round to + infinity mode. The result is output by the parameter OUT.

Ceiling Instruction in PLC

Floor:

It reads the input floating point value and converts it to double integer. The result is the greatest integer component which is greater than the floating point number i.e Round to -infinity mode. The result is output by the parameter OUT.

Floor Instruction in PLC

Ladder Logic

PLC Programming Example using Converters

Ladder Description:

Network 1:

If I0.0 is pressed, value in MD0 (99.78) is read as a floating point number and converted to the closest double integer(100). The result of round to integer is stored in MD4(100).

Network 2:

If I0.0 is pressed, value in MD0 (99.78) is read as a floating point number and converted to the double integer. The integer part of the floating point number is the result. The result is stored in MD12 (99).

Network 3:

If I0.0 is pressed, value in MD0 (99.78) is read as a floating point number and converted to the double integer by round function . The result is stored in MD12 (100).

Network 4:

If I0.0 is pressed, value in MD0 (99.78)is read as a floating point number and converted to the double integer by the round to – infinity mode. The result is stored in MD16(99).

Note: For positive numbers, trunc and floor give the same result. But for negative numbers, floor rounds down and trunc rounds up. This is because trunc always rounds toward 0.

Author: Hema Sundaresan

If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • JUMP Instruction in PLC Programs
  • Master Control Reset (MCR) in PLC
  • One-Shot Rising & Falling Instructions
  • Sequence and Logic Control in PLC
  • Scaling with Parameters Instruction
  • What is DCS and ESD Systems?
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Recommended Articles

Ladder Logic Vs. Other Programming Languages – PLC Basics
Toggle Switch & Sensor: Conveyor and Puncher PLC Program
PLC Program for Fish Feeding System
PLC Basics – Manual Control, Closed Loop, ON-OFF with Hysteresis
Contacts and Coils in PLC Ladder Logic
Download Allen Bradley RSLogix PLC Software
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
208kSubscribersSubscribe
38kFollowersFollow

Categories

Recent Comments

  • William Snyder on Top Non-PLC Certification Courses for Automation Professionals
  • Kamli on Top Free PLC Software
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals

Related Articles

Electrical Circuit Label Schematic

Label the Electrical Circuit Schematic

Relay Wiring

Animation of Electromagnetic Relay

PLC Program to control level of parallel tanks

Parallel Tanks Level Control using PLC Ladder Diagram Tutorial

SR Flip Flop Logic

How to implement SR Flip Flop using PLC Ladder Logic

Pumping System in Industrial Automation

Basic Pumping System Application Used in Industrial Automation

Sourcing output module in PLC

Which Connection is Best for PLC? – Sinking or Sourcing

Difference between Motion Controller and PLC

Difference between Motion Controller and PLC

Parameters of SRT_DINT instruction

Tia Portal – OB20 Time Delay Interrupt Organization Block

More Articles

Advantages & Disadvantages of CNC Milling

What are the Advantages & Disadvantages of CNC Milling?

Developing a Sine-Wave Voltage of Motor

AC Generation

Temperature Switch Working

Basics of Temperature Switch

Shift Registers and Counters Objective Questions

Shift Registers and Counters Objective Questions

Analyzers Questions and Answers

Infrared Gas Analyzers Questions & Answers

compressor emergency shutdown system

Solenoid Valves Questions & Answers – 2

Vacuum Circuit Breaker Principle

What is Vacuum Circuit Breaker?

Electronic Devices & Circuits Objective Questions

Electronic Devices & Circuits Quiz – Set 2

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?