Thumbwheel switches to timer integer

PLCpuzzled

Member
Join Date
Aug 2015
Location
PA
Posts
4
Hello all,

Though no stranger to computers and programming, I am a newbie to PLCs. I have a simple task but am not sure how to connect the dots. I plan to use an AD Click C0-01DR-D with an additional input module.

I need to load a timer (for a delay of 1-99 seconds) from a number entered via a two digit thumbwheel switch (8 bits BCD).

What's the path from that to the integer value I need? Any help is appreciated. Thanks!
 
There doesn't seem to be a one-box conversion instruction so you'll have to construct an algorithm using one or more MATH instructions and some RSH instructions.
 
Thanks Doug. That's along the lines of what I found (or didn't find). I thought perhaps I was just missing the obvious. Thanks for your help.
 
Have you thought about using a small cheap HMI for inputting the number you need? I have never been a fan of BCD switches as it uses up a lot of inputs.

You can get a pretty cheap HMI from AD starting around $200.
 
Use two PACK COPY instructions to isolate the two groups of 4 bits to their own D registers. Then use MATH ((Upper * 10) + lower) to develop a usable integer.
 

Similar Topics

How many wiring terminals are their on a 3 digit thumbwheel switch? I've read some notes that a two digit switch has for the LSD 5 terminals and...
Replies
1
Views
1,671
I would like to know how thumbwheel switches work in plc's.How the ladder logic is written?
Replies
10
Views
7,723
G U E S T
G
1. The first thumbwheel stuck, only able to switch between 0 and 9. It can go from 000-099 or 900-999. 2. If I set it to 009, I can ping to...
Replies
3
Views
2,036
So I'm fairly new to PLC programing. in my PLC class my task right now is to write some logic that uses a thumbwheel to set the timer thats...
Replies
29
Views
4,317
hi, guys. I am using the Siemens setp 7. I have a thumbwheel input in the panel, which has four bit input all boolean ones? How can I get the...
Replies
17
Views
4,567
Back
Top Bottom