PLC analog input conversion process

Publisher:雷电狂舞Latest update time:2022-04-21 Source: elecfansKeywords:PLC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

PLC analog input collects data, and after calculation-conversion, it gets MD double word, and finally the host computer monitor displays the address DB.DBW single word. How is this process converted and what instructions are used? Please give me some advice, preferably with detailed examples, thank you!


How to use MOV instruction to convert double integer (such as DB20.DBD48) to the host computer monitoring display address (single integer)? Should we take the lower two bits or the upper two bits?


A: Generally, the data collected by the analog input module is converted into real numbers using Siemens standard function block FC105, which can be saved using MD, and then the real numbers are converted into double integers (ROUND or TRUNC instructions can be used), and finally the double integers are converted into your host computer monitoring display address, such as DB.DBW (single integer) using MOV instructions. The reason why you can use a single integer signal to display your collected value should be that your input signal does not exceed the expression range of the single integer signal, otherwise it will cause data overflow.


LDB122.DBD44

RND

TDB122.DBD48

LDB122.DBW50

TPQW200

For example: Convert the value in DB20.DBD48 to MW20

1. moveDB20.DBD48MW20

move0DB20.DBW48

2. moveDB20.DBW50MW20

DB20.DBW48=0 is required.

Otherwise DB20.DBD48≠MW20.


Keywords:PLC Reference address:PLC analog input conversion process

Previous article:Accurate control accuracy combined with PID algorithm
Next article:Siemens PLC battery failure signal appears after battery replacement

Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号