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.
Previous article:Accurate control accuracy combined with PID algorithm
Next article:Siemens PLC battery failure signal appears after battery replacement
- Popular Resources
- Popular amplifiers
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- MSP430 MCU Principle and Application Experiment Example
- [AT-START-F425 Review] GPIO key interrupt + CAN receive counter
- TWS Bluetooth Headset Disassembly
- [GD32L233C-START Review] Review 3: Accurate delay measurement using timer time5
- Download and get a gift | Keysight Technologies [Cheats on how to choose and use oscilloscope probes]
- 【AT32F421 Review】+ Unboxing and Quick Start
- 【Smart Desktop Interactive Robot】Completed
- [Project source code] [Modelsim FAQ] Definition of port reg and wire in TestBench
- Countdown 2 weeks! Shenzhen Electronics Fair opens on September 9, full guide to visiting the exhibition~
- Video: UWB for Automotive Applications: An Engineering Primer