prtbrown

MrPLC Member
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About prtbrown

  • Rank
    Hi, I am New!

Profile Information

  • Country Angola
  1. floating point constant

    thanks for the replies. this is my first job working with PLCs (but learning quickly!) I am reusing code from another programmer. Under the PIDAT (191) instruction he has set the Setpoint Value as an operator input value (IDEAT1_PID_SV) which is an UINT. In the screenshot of the HMI the example input value is 7.2. For my present spec, I need to fix the setpoint at a value of 0.85. So my confusion is how do I set 0.85 as a constant in the PIDAT instruction? The CPU is a CS1G-H
  2. floating point constant

    I need to set the midpoint of a PID function via sensor readings. The min and max are 0.7-1.0 hence I want to set the midpoint at 0.85. I want to use the Mov instruction to move a floating point number constant (0.85) into an UINT variable but I don't know how. Could I just set the midpoint at 85 and scale the sensor readings by x10?