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

TOPIC: Constants in PLC Program

Re:Constants in PLC Program 13 years 10 months ago #805

  • dannyboi83
  • dannyboi83's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 40
  • Karma: 0
Where would I find the network node name?

Dan
The administrator has disabled public write access.

Re:Constants in PLC Program 13 years 10 months ago #806

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
I mean the name you have set as NodeName in the NodeConfig object. The one you see with uname -n.

/Claes
The administrator has disabled public write access.

Re:Constants in PLC Program 13 years 10 months ago #807

  • dannyboi83
  • dannyboi83's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 40
  • Karma: 0
Ok, I have tried updating the file contents to the following:

dcarr-desktop_setvalp TempControl-1VConst.ActualValue = 1

And still it is not allowing me to set the initial value, and it defaults back to 0.

As far as the H1 and H2 are concerned, is this the plant hierarchy?

Dan
The administrator has disabled public write access.

Re:Constants in PLC Program 13 years 10 months ago #808

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
Yes, H1 and H2 are hiearchy objects. Have you copied the file to $pwrp_load ?

You can also set initvalues in the plc code by using a CStoAv object and connect a FirstScan object to the condition input. Remove the 'In' input pin with the Used checkbox in the object editor, and enter the initial value into the 'In' attribute.

/Claes
The administrator has disabled public write access.

Re:Constants in PLC Program 13 years 10 months ago #809

  • dannyboi83
  • dannyboi83's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 40
  • Karma: 0
Thats great, copying it into the $pwrp_load file worked. Thanks so much for your help.

Dan
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 7.782 seconds