×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Siemens S7-400 PID Reset data format
2

Siemens S7-400 PID Reset data format

Siemens S7-400 PID Reset data format

(OP)


I am to writing a floating point number for PID “reset time” from a SCADA HMI to a data block register in a S7-400 processor simatic PLC. Contrary to some published data I cannot get the PID block to read milliseconds. The PID block seems to insist that the reset and rate times be in siemens’ “time format” data type before the PID block will read them.

Can I force the PID block to accept milliseconds?

Is there a math block that will convert decimal into time format?

RE: Siemens S7-400 PID Reset data format

Hi Andy,

Look in Standard Library/IEC Function Blocks for FC40 TIM_S5TI. It'll convert TIME datatype into S5TIME.

RE: Siemens S7-400 PID Reset data format

jacekd,
in this case, can word containing tag containing number of millisecons be used as input for TIM_S5TI? I guess no.

S5Time is simply BCD. Once upon a time I had to convert seconds to S5Time (S5-155 CPU948 though)



Name :INT->S5T        Convert integer seconds to s5t
 
     :DUF             integer to bcd
     :L   KH 0FFF     only 3 digits needed
     :AW              apply binary mask
     :L   KH 2000     "2" means seconds
     :OW              apply binary mask
     :BE

RE: Siemens S7-400 PID Reset data format

(OP)
Thanks Guys, I ended up changing the HMI to interger and using ladder in the plc to convert it to time format. Andy

RE: Siemens S7-400 PID Reset data format

Dear ipupkin,
You're right. It's not possible to use word at a input which is dword.
However try this:
L ?W x
T ?D y
(where ? stands for: I,Q,M,DB or DI and x,y - is a address)
This will copy your word (consisting of miliseconds) into dword (wow! data type TIME has been created) which you can use as input of FC40.

Regards,

Jacek

Do it right or don't do it at all.

RE: Siemens S7-400 PID Reset data format

A TIME data type is stored as a signed integer number of milliseconds in 2's complement format.  This is not S5Time format as some of the other comments have suggested.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources