If you go into PAC Manager and inspect your controller, on the left hand side go down to Communications>CAN Modules. Here you can select the module position from the drop down to see your CAN Module and all pertinent information (including port number, module position 5 should be 22510).
Now in your PAC-INT-RXTX strategy...
[INDENT]In the Powerup Chart: Modify the code to contain the correct position of your CAN Bus module[/INDENT]
[INDENT]Status = O22Can2BConfigMasksFiltersBaud(OptoMMP, 5, 250000, 0, 0, 0, 0, 0,0, 0, 0, CANStatus);
In the CAN_RECEIVE_ONLY chart: Modify the code to contain the correct port found above, 22510.
CANPort = 22510;
In the CAN_SEND_ONLY chart; Modify the code to contain the correct TCP address. I am assuming this is a local controller + brain. If you are using a remote brain, use its IP address below.
[I]sTCPHandle = "tcp:127.0.0.1:22510";
[/I]In the CAN_SEND_AND_RECEIVE chart; modify the code just as you did in the CAN_SEND_ONLY chart.[/INDENT]
Now your module position is hard coded into the strategy. Please let me know if this helps!