Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: Converter Instruction in Siemens PLC Programming
Share
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
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:

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 !

Continue Reading

Complete PLC Project: Traffic Light Auto and Manual Automation
Difference between Motion Controller and PLC
Create a Function (FC) for a Valve Logic in Siemens PLC
ControlLogix Architecture – Rockwell Automation
PLC Logic for Analog Alarms using Functional Block Diagram
Use of Regions in SCL Language
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
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Single-acting Cylinder OR Logic Operation (PLC and Sensors)
Why is 24 Volts Commonly used in PLC Systems?
Difference between DCS & PLC Systems
PLC Program for Two Way Switch Logic
DeMorgan’s Theorems using Ladder Diagram
Controlling of Tank Level Using Proportional Controller in PLC
Identify the Problem in the PLC Program
Transmitters 4-20mA Current Failure Alarm Limits

Keep Learning

Programmable Logic Controller (PLC)

What is Interposing Relay in a PLC System ?

Human Machine Interface

What is Human Machine Interface (HMI) ?

How to Control VFD with PLC using Ladder Logic

plc-analog-signals-wiring-techniques

PLC Analog Signals Wiring Techniques

Networked SCADA Architecture

Types of SCADA System Architecture

Grounding or Earthing Scheme in DCS or PLC Systems

Grounding or Earthing Scheme in DCS or PLC Systems

Ladder Logic Vs. Other Programming Languages - PLC Basics

Ladder Logic Vs. Other Programming Languages – PLC Basics

Complementary Split Range Control

What is Complementary Split Range Control (CSRC)?

Learn More

Meters used in Troubleshooting Electrical Equipment

Meters used in Troubleshooting Electrical Equipment

Steam Letdown Station Problems

Steam Letdown Station Problems and their Solutions

Reliability Techniques for Analyzing Fault Tolerance in Industries

Reliability Techniques for Analyzing Fault Tolerance in Industries

Components of Electrical Motor

What is Electrical Slip Ring? Principle, Types, Advantages, Applications

Introduction to MEMS (Microelectromechanical Systems)

Introduction to MEMS (Microelectromechanical Systems)

Hammer Handwheel

Valve Handwheel Types : Fixed, Hammer, Gear

Electronic Symbols List

Electronic Symbols

Control Systems Stability and Algebraic Criteria

Concept of Stability in Control Systems

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

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?