Jump to content

Recommended Posts


Posted
That would depend on the PLC. What are you using? It looks like the 16 is an addative for a fixed figure. In other words, there is a base that the 16 is added to.
Posted
Have never used one but I believe my previous remarks are probably the basis for the addition. Your local Siemens rep should be able to tell you straight away.
Posted
seams they only use last two digits so 2002 becomes 02 (could be 1902 if PLCs existed at that time and it can be 2102, 2202 etc but this in another hundred or two hundred years). prefix 16# should indicate format (16-bit value)
Posted
You could always convert from decimal to bcd using the I_BCD and BCD_I function. Then do the clock in real units.
Posted
In S7-200, the 16# in front is telling the PLC the data is in the HEX format. BCD format is same as Hex except doesn't go above 9. Without that, PLC assume it's decimal, which would result in different bits being turned on in the word.
Posted
If you try this library function then you can access the clock in real decimal format.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...