Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Accessing Gate3[x].PartOptn from C
#1
PartOpt1..7 are not in the GateArray3 structure. How do I access these in a C PLC?
Reply
#2
This is documented under the “Gate3[i]. (PMAC3-Style ASIC) Status Elements” as Gate3[i].PartOptn. In C, this element should be accessed as Gate3PartData[i].Optn.
Reply
#3
(02-07-2019, 05:22 PM)steve.milici Wrote: This is documented under the “Gate3[i]. (PMAC3-Style ASIC) Status Elements” as Gate3[i].PartOptn. In C, this element should be accessed as Gate3PartData[i].Optn.

Found it in RtGpShm.h as part of the SHM structure accessed by:

unsigned mypartopt1;
mypartopt1 = pshm->Gate3PartData[0].Opt1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)