Quantum 140CPU65160 Unity PRO XL BCD to Word %S51 (Hours and Minutes)

Bit Crunch

Member
Join Date
Mar 2011
Location
Florida
Posts
3
Can someone please chime in, and either post a screen shot, or describe how to change the %S51 (BCD) hours and minutes to two separate words for remote viewing.

I do not see a BCD to Word function, nor do I see a good clean way to spit the %S51 into two bytes, reverse the bytes, then package back into the two needed words. Am I missing something ?

Thanks in advance.
 
Last edited:
there is a bcd to int block, you might be able to use that with the shift right function block (SHR) to split the bits from there.

i dont have unity with me right now but i can give it a go later.
 
Pease see my PLC model and software (UNITY PRO XL) - Think I can even set up simulation through a switch to another laptop running Modscan. To verify the results. I have yet to see a good way to do this.

I will send a 100 dollar bill to the person who resolves this issue.
 
Word_to_byte this will split the %SW into two bytes (high and low bytes) then bcd_to_int for each byte
 
Last edited:

Similar Topics

Hello All, Was hoping I could get a little help with Modicon ladder logic. This is the first time I have seen Modicon logic and currently trying...
Replies
6
Views
257
Hi There, I have a Modicon Quantum PLC, there is a alarm on display "noConfig" its happened after power failure, I have gone through manuals...
Replies
3
Views
646
Hey guys. Mostly new to this stuff so I apologize if I'm not following proper format. I have 3 working CPU133 /3s. There is a desktop with a...
Replies
2
Views
888
When i read the specification of 140CPU43412A i observe that as remembered in specification 1. Local i/o : Maximum i/p and o/p words are 64 in...
Replies
0
Views
491
Main rack contained power supply 140cps52400 and 140cpu43412A and RIO HEAD 140CRP93100 in addition to another I/o cards . Another remote rack...
Replies
8
Views
1,857
Back
Top Bottom