Name:
forward
Syntax:

FORWARD motor

Motor - is the motor name A or B.

Description:

Make a motor output turn forwards This is a 'pseudo' command designed for use by younger students with pre-assembled classroom models. It is actually equivalent to 'high 4 : low 5' (motor A) or 'high 6: low 7' (motor B).

This command is not normally used outside the classroom.

Applies To:
All (except 08, 08M, 08M2)
See Also:
Related Create:
Share:
Print:

Motor control

Demonstrate moving a motor forward, backwards and stopping.

Code Example:
main:	forward A	; motor A on forwards
	wait 5		; wait 5 seconds
	backward A	; motor A on backwards
	wait 5		; wait 5 seconds
	halt A		; motor A reverse
	wait 5		; wait 5 seconds
	goto main	; loop back to start
Copy Code Submit an Example

Submit Your Own Code!

You must be logged in to submit code examples. Login now.

Comments

  • Login to leave a comment.