Hello all!
I hope this hasn't been answered already, I wasn't sure what to call it in the search.
I have to program a PLC controlled vision based detection system of labels on a product. There are 7 different sizes and 9 countries to select from. The operator needs to be able to select any combination of these, but only one size and country at a time. Depending on their selection the camera must move up down/in out for focus and output to change the camera program.
PLC is a FC5A Idec with a HG4G HMI. I tried to use 2 data registers, one for label and one for size. Then each button on the HMI wrote a different number into these data registers.
The idea was to compare the information in these registers to constant values and depending on which one matched, a certain internal relay would be set (one for each country and size).
The problem I'm having is with my data being changed from PLC to HMI. In the HMI I asked for D0000 (of the host) to be moved to D0001. (host)
D0000 was 10, but when it came back from the HMI it was either 65,xxx if WORD type was selected or -4064 if I chose INT.
The HMI will let me address to bit level D0000-00 but the PLC won't accept this. It only allows for D0000.
Anyone know a simple fix or have a better idea for controlling this?
Thankyou very much!
I hope this hasn't been answered already, I wasn't sure what to call it in the search.
I have to program a PLC controlled vision based detection system of labels on a product. There are 7 different sizes and 9 countries to select from. The operator needs to be able to select any combination of these, but only one size and country at a time. Depending on their selection the camera must move up down/in out for focus and output to change the camera program.
PLC is a FC5A Idec with a HG4G HMI. I tried to use 2 data registers, one for label and one for size. Then each button on the HMI wrote a different number into these data registers.
The idea was to compare the information in these registers to constant values and depending on which one matched, a certain internal relay would be set (one for each country and size).
The problem I'm having is with my data being changed from PLC to HMI. In the HMI I asked for D0000 (of the host) to be moved to D0001. (host)
D0000 was 10, but when it came back from the HMI it was either 65,xxx if WORD type was selected or -4064 if I chose INT.
The HMI will let me address to bit level D0000-00 but the PLC won't accept this. It only allows for D0000.
Anyone know a simple fix or have a better idea for controlling this?
Thankyou very much!