Industrial Automation
Industrial Automation | Europe

What is myOMRON?

Click here to find out

Search myKnowledge

Login

Username

Password



Register / Forgot password?

Follow

myKnowledge

Main > Product Type > Automation Systems > PLCs
Minimize Text   Default    Enlarge Text
 

Print
E-mail

How Do I Create A Program To Input 2-Digit BCD Data From A Digital Switch To CIO 0.08 To CIO 0.15 And Then Move The Data To Specified DM Area Words?




Assuming that CIO 0.00 to CIO 0.07 are allocated to other input bits, the following two conditions must be met to create the program.
1.Only the digital switch value from CIO 0.08 to CIO 0.15 is to be extracted from CIO 0.

2.The 8 bits extracted in the previous step must be moved to the lower 8 bits of a word so that they can be used in processing in the next program rung.
Use the MOVE DIGITS instruction (MOVD) to Meet Conditions 1 and 2 Above

The MOVE DIGITS instruction (MOVD) can be used to meet the conditions described in items 1 and 2 above.
Additional Information

What Is a Digit?

A "digit" is a single numeral. In this case, the instruction name MOVE DIGITS comes from the meaning to send a BCD value in digit (4-bit) increments.
Program

 


 




Comments (View All Comments / Add Comment)

Related Articles
How Do I Write A Program That Will Read Input Signals From Ten-Key Keypad Connected To A CS/CJ PLC And Convert Them To Numeral Data?
There are two types of ten-key switches, one that uses binary code and strobe signals, and another that uses decimal code. This document introduces programming for the...
How Do I Make A Program To Transfer A 2.5-digit BCD Data Stored In The DM Area To Display It On A Static-Input Digital Display (CIO 2.00 To CIO 2.09)?
We will assume that CIO 2.10 to CIO 2.15 are allocated to other output bits. The main point of this program is how to process the combination with the other output bits....
What Is The Difference In The Way That The BCD ADD WITHOUT CARRY Instruction And BCD ADD WITH CARRY Instructions Are Used?
Introduction The Carry Flag (CY)! Most PLCs support double-length math instructions, but for example, what should be done if the result of a BCD...
 
Created 2008-10-31
Modified 2009-04-29
Views 563

 

You are not logged in.