====== Set Ladder ====== ''Set Ladder On|Off'' Ladder is set to Off by default. Use this command to turn enable Ladder Logic. The following is an example of a simple BASIC program for starting Ladder logic: Const Device = CB280 'Device Declaration UsePin 0,In,START 'Port Declaration UsePin 1,In,RESETKEY UsePin 2,In,BKEY UsePin 3,Out,MOTOR Alias M0=RELAYSTATE 'Aliases Alias M1=MAINSTATE Set Ladder On 'Start Ladder Do Loop 'BASIC program will run in an infinite loop. [[cubloc:index#system_library:|Go CUBLOC home]]