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

Good morning fellow sea captains and wizards, I am being asked to do the above and obtain 4 values from each slave, I know about the MRX and MWX...
Replies
21
Views
233
Hi everyone, I am an omron plc tec , lately I came across a siemens s7 200 cn plc . Can someone help me regarding the software required and...
Replies
26
Views
465
This is the first time I am working with Simatic Manager Step7 as I started my siemens journey with TIA which is pretty easy and do a lot of stuff...
Replies
3
Views
117
Hi, I have PLC S7-1200 and switch XC-208 and Iam trying to implement this SNMP library: SIOS I am not sure, what I am doing wrong, but there is...
Replies
3
Views
122
Hi all, i am the new controls guy at the plant and i have inherited a pc from the previous controls guy with Siemens tia portal version 16 and 17...
Replies
20
Views
745
Back
Top Bottom