Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Static value in PLC program

Static value in PLC program 2 years 5 months ago #11252

  • michael.schalck
  • michael.schalck's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 1
  • Karma: 0
Hi :)

How can a create a fixed value in the PLC program?
I have a value that i need to multiply with 0.1, but what is the correct way of doing this?
Now i have created a variable with the initial value of 0.1, and the i use the GetAv block to fetch this value in my code.
Im quite new to Proview so i know that this could be a very simple/stupid question.
The administrator has disabled public write access.

Static value in PLC program 2 years 5 months ago #11253

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
Hi Michael,

You can use a Mul object to multiply two values, and fetch and connect the value that is to be multiplied to the first input, and the GetAv for the 0.1 Av to the second. But you can also insert a fix value directly into the second input of the multi object, by opening the object, remove the second input with the checkbox, and insert the value 0.1 for the second input. When an input is not connected the internal value of the input will be used instead. Normally you also write a comment as this value is not viewed in the code.

/Claes
The administrator has disabled public write access.
The following user(s) said Thank You: michael.schalck

Static value in PLC program 2 years 5 months ago #11254

  • michael.schalck
  • michael.schalck's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 1
  • Karma: 0
Thanks Claes :)

Worked like a charm.

/Michael
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.278 seconds