Jump to content

Handeling Timers


Isakovic

Recommended Posts

Hello,

When reading timer value as numeric data type (TCL or TPL) the result is always 0, while reading it as a string returns correct value.

I don't know what's the problem. It probably isn't syntax because OPC reports syntax errors, I tried all numeric data types and the result is always 0.
Reading value as a string isn't that much of a problem because substrings  for minutes and seconds can be extracted. But when writing the value into PLC some code gymnastics is required which takes time. So my question is can timer values be treated as numeric variables?

I use "WinLog" SCADA from Sielco, example of tags that I use:
Transport.TPL0 (this returns 0)
Transport.TP0 (this returns correct value)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...