No, it needs to be:
Code:
DigitalInput *Clamplimit; //Limit Switch for clamp
Clamplimit = new DigitalInput(2); //Limit Switch for clamp (Digital Input)
if(Clamplimit->Get())
{
s[6] -> Set(false);
s[7] -> Set(true);
}
Also, what class is s an instance of?