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

TOPIC: Compile error of self defined class

Compile error of self defined class 5 months 3 weeks ago #11307

  • frans
  • frans's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 50
  • Karma: 0
Best wishes for 2022 to all of You.

I defined a function class "PBShortLongFo"in class volume "CVolDomotica" (see attached file "class editor.png")
I added the "CVolDomotica" classvolumeconfig in the PwR directory (see attached file "PwR Directory.png)
I updated the classes.
Used this function class in a plc program: (see attached file "PLC-programm.png)
The syntax check of the plc program was without errors.
When building object plant "garage" (see PwR VolHome.png) i get these errors (see Build errors.png)
There is an error: "unknown type name 'pwr_sClass_PBShortLongFo'

Am I forgotten something?
What did I do wrong?

Kind regards,
Frans Sleddens
Attachments:
The administrator has disabled public write access.

Compile error of self defined class 5 months 3 weeks ago #11309

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 2961
  • Karma: 0
Hi Frans,

You should include pwr_cvoldomoticaclasses.h in $pwrp_inc/ra_plc_user.h.

/Claes
The administrator has disabled public write access.
The following user(s) said Thank You: frans
  • Page:
  • 1
Time to create page: 2.734 seconds