Magnet#
Energize Electromagnet#
The Energize Electromagnet block is used to set the GO Electromagnet to two different actions: boost or drop.
energize [magnet v] to [boost v] :: #3373cc
Select which mode for the Electromagnet to use:
boost - Turns on the electromagnet indefinitely or until the Energize Electromagnet block is used with the drop parameter.
drop - Releases any object the electromagnet is holding.
In this example, the Electromagnet will turn on for 2 seconds before turning off.
when started :: hat events
energize [magnet v] to [boost v] :: #3373cc
wait (2) seconds
energize [magnet v] to [drop v] :: #3373cc