C-Gate Common Commands

C-Gate Common Commands

  1. daniel
    Creating a new Project

    Code:
    # create a project
    # (project names are case sensitive)
    # (project names must be 8 characters or less)
    project new MYPROJ
    200 OK.
    project start MYPROJ
    200 OK.
    project use MYPROJ
    200 OK.
    
    # check available ports
    port list
    125-port=COM1 status=inuse
    125 port=COM2 status=available
    
    # create a network for a PCI on COM port 1
    net create 254 serial COM1
    200 OK.
    20060502-162611 742 //MYPROJ/254 - Network created type=serial address=COM1
    
    # view networks in project
    net list
    131 network=254 State=new InterfaceState=closed
    
    # save the project 
    net save db
    200 OK.
    project save MYPROJ
    200 OK.
    
    Loading a Project

    Code:
    # projects found in tag directory
    project dir
    123-project=CLIPSAL
    123 project=MYPROJ
    
    # projects loaded into C-Gate
    project list
    124 no projects found
    
    # load a project into C-Gate
    project load MYPROJ
    200 OK.
    20060502-161753 751 //CLIPSAL - Tag information changed at tag
        address: //MYPROJ/Installation oldtag: null newtag: null
    
    # view projects in C-Gate
    project list
    123 project=MYPROJ state=stopped
    
    # start the project
    project start MYPROJ
    200 OK.
    
    # set it as the current project
    project use MYPROJ
    200 OK.
    
    Syncing a Network

    Code:
    # prepare network
    project use MYPROJ
    200 OK.
    net load db
    200 OK.
    set 254 autosync no
    200 OK: //MYPROJ/254
    
    # open network
    net open 254
    120-initializing
    120-opening port
    120-starting network threads
    120-pci reset
    120-open complete
    200 OK: //MYPROJ/254
    
    # sync network (takes a while)
    do 254 sync
    202 Done: //MYPROJ/254
    
    Viewing a Network

    Code:
    
    tree 254
    320- Network name:254 type=serial address=COM1 state=ok
    320-  Unit count=5
    320- Units:
    320-//MYPROJ/254/p/4 ($4) type=DIMDN8 app=56($38),255($ff) state=ok groups=4,4,1
    320-//MYPROJ/254/p/5 ($5) type=PCLOCAL4 app=255($ff),255($ff) state=ok groups=
    320-//MYPROJ/254/p/6 ($6) type=KEYM8 app=0($0),255($ff) state=ok groups=4,6
    320-//MYPROJ/254/p/7 ($7) type=KEYA8 app=0($0),255($ff) state=ok groups=
    320-//MYPROJ/254/p/14 ($e) type=RELDN12 app=56($38),255($ff) state=ok groups=0
    320-Applications:
    320- Application 56 ($38) [lighting]
    320- Groups:
    320-  //MYPROJ/254/56/0 ($0) level=0 state=ok units=14
    320-  //MYPROJ/254/56/1 ($1) level=255 state=ok units=4,18
    320-  //MYPROJ/254/56/2 ($2) level=0 state=ok units=18
    320-  //MYPROJ/254/56/3 ($3) level=0 state=ok units=17,18
    320-  //MYPROJ/254/56/4 ($4) level=0 state=ok units=4,18
    320- Application 202 ($ca) [trigger]
    320- Net Vars:
    320-  //MYPROJ/254/202/255 ($ff) level=0 state=ok
    320- Application 254 ($fe) [application]
    320- Groups:
    320-  //MYPROJ/254/254/4 ($4) level=0 state=ok units=11
    320 -end-
    
    
    Shovelhead and Barry24 like this.