We have a Nokia robot connected to the PMAC ISA Lite card.
We are upgrading to a PMAC PCI Lite card.
The card is plugged in to the PC for communication via the bus.
The cables connected to the card are plugged into J2, J5 and J8.
There is a connection to J3, but we only use GND and +5V.
We also have an ACC-14P card connected to the PMAC card and plugged into the PC.
The cables from the 2 serial to parallel converter units are plugged into the ACC card.
These are the X and Y coordinates of the robot.
I loaded the 9 PMC and 5 PLC motion programs,
all the I, P and Q variables, the M-variable definitions,
the memory for custom servo code,
the open scratch pad memory,
the encoder conversion table registers,
the VME address setup/DPRAM setup registers.
All of this came from the old PMAC ISA Lite card.
I saved this to the flash RAM.
I start the PC in my office and nothing is connected to the cards.
I run PEWIN32PRO2.
I look at the M0 and M1, which is defined as
M0->Y:$FFD0,24
M1->Y:$FFD1,24
This is to get the X and Y coordinates of the robot.
The values displayed there is 16514816, 16514816.
I click the Update Periodically checkbox and the 2 variables
periodically changes to other values like 130816.
I then took the PC to the robot and connected everything there.
The robot was standing still but the values for M0 and M1 did
exactly the same.
I am not sure if al the jumpers on the cards are correct, I left them in their default positions.
I am sure that the base address for the ACC card is correct.
If I plug al the cables back into the old PC everything works.
I need to know what I'm missing, do I need to initialize something in the card?
Apart from this I have the VB6 software that manages the robot.
When I run only the VB code, the values I get back from M0 and M1 is 0
The VB code also shows P1 and P2 as 0.
When I run PEWIN32PRO2, keep it open and then run the VB code
it shows the same values as I see in PEWIN32PRO2.
If I change P1 or P2 in PEWIN32PRO2, the VB code shows those values correct.
I need to know why the VB code doesn't work if the PEWIN32PRO2 isn't running?