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

TOPIC: Using User Data Class [solved]

Using User Data Class [solved] 15 years 10 months ago #227

  • Ohl
  • Ohl's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 102
  • Karma: 3
Hi,

How can I move values to and from an instance of a Data class?

I have successfully created my class as described in the Designers guide and also added an instance of this class to the project volume.
This far the class only has storage room for one float32 and I would like to store and retrieve an Av value to try this out.

Thanks in advance!
/Ohl

Post edited by: Ohl, at: 2008/07/31 15:42
The administrator has disabled public write access.

Re:Using User Data Class 15 years 10 months ago #228

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi,

This is done in the plc program. Fetch the av-value with a GetAv and store it in the object with StoAp or CStoAp, or get the object value with GetAp and store in the Av with StoAv or CStoAv.

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