Hi,
I'm really bugged with this. The CPT instruction in below rung apparently generates the following program fault:
If I disable the CPT instruction (with tempint0.0), all goes well. If it's enabled the Program fault is generated. CLXPort.SplitPos is either 0 or 68 the other DINT is always 2. I really don't understand why adding these 2 DINT is generating this fault. This seems so simple straight forward.
Any help is really appreciated.
Thank you.
B.
I'm really bugged with this. The CPT instruction in below rung apparently generates the following program fault:
(Type 04) Program Fault
(Code 56) Invalid Start and/or Quantity value.
Task: MainTask
(Code 56) Invalid Start and/or Quantity value.
Task: MainTask
If I disable the CPT instruction (with tempint0.0), all goes well. If it's enabled the Program fault is generated. CLXPort.SplitPos is either 0 or 68 the other DINT is always 2. I really don't understand why adding these 2 DINT is generating this fault. This seems so simple straight forward.
Any help is really appreciated.
Thank you.
B.