Siemens S5-Weekend Puzzel

BNA

Member
Join Date
Sep 2003
Location
Give
Posts
117
Hi

Does anyone know how to convert DEC to HEX in Siemens Step 5.

I have to convert at DEC value(1-20) from a panel to HEX (Or BCD) the value is for a counter.

Regards
Brian
 
I think there is a Siemens FB for performing the conversion, otherwise, as you have a very limited range of numbers to convert, you could just do twenty comparisons to produce BCD from decimal.
 
There is an Fb to do this conversion, but it is not a part of the standart software, you have to buy all FB's.

This conversion is just to test if the machine can handel up to 20 layers, no one knows if it ever is going to be used.

I tried to make a simple conversion and just move a new value down to the counter, but for some reason only the highest value is written into the timer, and not the one I write ???????
 
If your CPU is a 135/150/155U then you could use BDW (16 bit fixed point to BCD).

I'ts a supplementary op so it's only valid in a FB.
 

Similar Topics

Hello everyone, I've had this issue for the last 2 days where I try to assign the profisafe address to an IO block (6ES7 146-6FF00-0AB0) but when...
Replies
5
Views
99
Hello, good morning, I have been having two problems with the Tia Portal software. The first is that I have installed it on my computer and...
Replies
5
Views
146
Hello to all, I'm just starting with using CodeSys. Immediately, I have noticed that Codesys doesn't use data blocks like for example S7 does...
Replies
11
Views
167
Hi, I'm setting up a modbus master on an S7-300. It seems to work in OB1 but not when I use it in OB35. Does anyone have any ideas why? Could...
Replies
10
Views
112
The past week we received a new piece of equipment from Germany which utilizes siemens controls. Typically in our company we use A.B. controls for...
Replies
12
Views
332
Back
Top Bottom