User Tools

Site Tools

한국어

cubloc:set_ladder:index

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.

Go CUBLOC home

cubloc/set_ladder/index.txt · Last modified: 2022/09/29 09:14 by COMFILE Technology