Announcement

Collapse
No announcement yet.

Simple Script line doesn't work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Simple Script line doesn't work

    What am I doing wrong here. This simple script line doesn't work for me. It is supposed to copy the device value from device 1783 to device 2359. BTW 1783 is a running timer if it matters.

    &hs.SetDeviceValueByRef(2359, (DeviceValue1783), True)

    It does execute as I see Device 2359 being updated but it always updates to 0 while the value of the device 1783 is not zero.



    #2
    Try this
    Code:
     &hs.SetDeviceValueByRef(2359, hs.devicevalue(1783), True)

    Comment


      #3


      Thanks a lot. It works like a charm.

      Comment

      Working...
      X