Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
436 B
2
Indexable
Never
PROGRAM PLC_PRG
VAR
	EncoderInput1:INT;
	EncoderInput2:INT;
	Counter1:INT;
	Counter2:INT;
	MAXCOUNTER:INT:=360;
	RacketPositionX1:INT:=21;
	RacketPositionY1:INT:=194;
	RacketPositionX2:INT:=687;
	RacketPositionY2:INT:=194;
	//BALL
	BallX:INT:=354; // ball x position
	BallY:INT:=194; //ball y position
	BallSpeedX:INT:=5;
	BallSpeedY:INT:=5;
	Point1:INT:=0;
	Point2: INT:=0;
	PointWon1:BOOL;
	PointWon2:BOOL;
END_VAR