We just got our pneumatics and we have no idea how to program them on easy c v4 help state in 1 day:confused:
void OperatorControl ( unsigned long ulTime )
{
int ClawOpenButton;
int ClawClosedButton;
while ( 1 ) // Insert Your RC Code Below
{
ClawOpenButton = GetJoystickDigital ( 1 , 6 , 1 ) ;
ClawOpenButton = GetJoystickDigital ( 1 , 6 , 2 ) ;
if ( ClawOpenButton == 1 )
{
SetDigitalOutput ( 1 , 1 ) ;
}
else if ( ClawClosedButton == 1 )
{
SetDigitalOutput ( 1 , 0 ) ;
}
}
}
This is the code that I found online that helped me program my pneumatics. You must set the “open” “close” as variables and then you need to set the button to retrieve to the digital port. This is when you get to the “if then” statement, and I think you should be able to figure it out from there. Good Luck at state