Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Input: 
IdleOn : BOOL;
Info

Type: Function

Responsible: Kenneth


Code Block
languageactionscript3
titleCode Overview
linenumberstrue
FUNCTION_BLOCK Idle
VAR_INPUT
	idleON : BOOL;
END_VAR
VAR_OUTPUT
END_VAR
VAR
END_VAR

IF idleON THEN 
	globals.motorSpeeds[0] := 0;
	globals.motorSpeeds[1] := 0;
	globals.motorSpeeds[2] := 0;
	globals.motorSpeeds[3] := 0;
	globals.motorSpeeds[4] := 0;
	globals.motorSpeeds[5] := 0;
	globals.motorSpeeds[6] := 0;
	globals.motorSpeeds[7] := 0;
END_IF