Hi,
I'm wondering about a compare command in GX developer, if I want to use an input command ie. < C0 K5, which means that if C0 is less than 5 that output will go on, but how can I set a similar command to go on when the counter value is between a certain value, ie. C0 k1, k5, meaning if counter C0 is between these values the condition will go true?I would like to use it as an input function. My application is a rotary index head on a milling machine , the machine gives a pulse to begin sequence, and it's always the same pulse, so I'm using a counter to make various distance moves, ie. first 4 pulses head rotates 90 degrees, next pulse it rotates 45, and the next 4 it rotates 90 again and the last pulse I would like it go to zero degrees, 315 degrees. I have no sensor to determine the home postion so it will be done with moves and pulses only.The program I have so far works fine until the last move were 2 conditions become true at the same time, the counter hits it's value (10) and then it is reset and instead of it making a 315 degree move it makes the first of the 90 degree move because the counter value is less than 5.
Thanxs
Best Regards
Lab
I'm wondering about a compare command in GX developer, if I want to use an input command ie. < C0 K5, which means that if C0 is less than 5 that output will go on, but how can I set a similar command to go on when the counter value is between a certain value, ie. C0 k1, k5, meaning if counter C0 is between these values the condition will go true?I would like to use it as an input function. My application is a rotary index head on a milling machine , the machine gives a pulse to begin sequence, and it's always the same pulse, so I'm using a counter to make various distance moves, ie. first 4 pulses head rotates 90 degrees, next pulse it rotates 45, and the next 4 it rotates 90 again and the last pulse I would like it go to zero degrees, 315 degrees. I have no sensor to determine the home postion so it will be done with moves and pulses only.The program I have so far works fine until the last move were 2 conditions become true at the same time, the counter hits it's value (10) and then it is reset and instead of it making a 315 degree move it makes the first of the 90 degree move because the counter value is less than 5.
Thanxs
Best Regards
Lab