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

TOPIC: Duplicate generated variable...

Duplicate generated variable... 3 years 9 months ago #10704

  • Bruce@Spang
  • Bruce@Spang's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 41
  • Karma: 0
I am getting a compiler fault while adding a DataArithm - it appears that a duplicate internal variable name has been generated:
20-06-26 15:45:59 %GSX-F-CCERROR, Error from c compiler or linker in window 1050Data-PLCcom-W
20-06-26 15:45:59 In file included from /usr/local/pwrp/1051communications/bld/common/tmp/plc_m000_001_001_003_0000001e.gc:2:
20-06-26 15:45:59 $pwrp_tmp
20-06-26 15:45:59 static plc_sClass_Iv *Z000_001_001_003_000005c4_00000_00776;
20-06-26 15:45:59 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20-06-26 15:45:59 $pwrp_tmp
20-06-26 15:45:59 static pwr_sClass_Iv *Z000_001_001_003_000005c4_00000_00776;
20-06-26 15:45:59 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20-06-26 15:45:59 $pwrp_tmp

1)How do I get around this issue? 2) Is there a way to avoid this in the future?

Thanks in advance!
The administrator has disabled public write access.

Duplicate generated variable... 3 years 9 months ago #10705

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3177
  • Thank you received: 502
  • Karma: 133
Hi Bruce,

GetData and Get/StoIv will generate pointers with the same name but of different types so you can't use both on the same Iv in the same plc window.

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