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

TOPIC: compile error

Re:compile error 13 years 5 months ago #1037

  • anmi
  • anmi's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
  • Karma: 0
Hi,

finally, i have managed to compile the program. Now, I have to do the .opt file but I don't find it in pwrp_exe. Do I have to create it myself? It is in another folder or do i have to do something before to create it?

thanks.
The administrator has disabled public write access.

Re:compile error 13 years 5 months ago #1038

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
The opt-file is only needed when you want to link some project specific module with the plc executable, so as default it doesn't exist and you have to create it on $pwrp_exe.

/Claes
The administrator has disabled public write access.

Re:compile error 13 years 5 months ago #1043

  • anmi
  • anmi's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
  • Karma: 0
Hi,

I have already finished but there is an error with the GE. When I execute the program and I try to open the Ge, I obtain a warning:
GeValue::connect, type is missing in M1-prog-W-GetAp0
**GeValue:suspicious format \"%5.2f\"( M1-prog-W-GetAp0)
and I can't open the GE.

The error is in Value.format. I have put different formats but i obtain the same warnings.
Which is the correct format?

Thanks.
The administrator has disabled public write access.

Re:compile error 13 years 5 months ago #1044

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

The problem is that you have connected the Value field to a GetAp object. Instead you should connect the field to the attribute that is fetched by the GetAp object. Now the Value.Attribute contains M1-prog-W-GetAp0 which is an object while it should be a float attribute with a type specifier, e.g. M1-prog-AnObject.AnAttr##Float32.

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