example_sequential.clp
来自「CNC 的开放码,EMC2 V2.2.8版」· CLP 代码 · 共 267 行
CLP
267 行
_FILES_CLASSICLADDER_FILE-timers.csv; Timers :; Base(see classicladder.h),Preset0,21,52,51,101,101,101,101,101,101,10_/FILE-timers.csv_FILE-monostables.csv; Monostables :; Base(see classicladder.h),Preset1,31,101,101,101,101,101,101,101,101,10_/FILE-monostables.csv_FILE-counters.csv; Counters :; Preset0000000000_/FILE-counters.csv_FILE-arithmetic_expressions.csv; Arithmetic expressions :; Compare or Operate ones@220/9@>5@220/4@>4@220/6@>8_/FILE-arithmetic_expressions.csv_FILE-rung_0.csv; Rung :; all the blocks with the following format :; type (see classicladder.h) - ConnectedWithTop - VarType (see classicladder.h) / VarOffset#VER=2.0#LABEL=TIMES#COMMENT=To advance alone#PREVRUNG=0#NEXTRUNG=199-0-0/1 , 99-0-0/2 , 20-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 50-0-0/1099-0-0/5 , 99-0-0/0 , 20-0-0/1 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 50-0-0/599-0-0/12 , 99-0-0/13 , 20-0-0/2 , 9-0-0/15 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 50-0-0/70-0-0/0 , 0-0-0/0 , 0-0-0/6 , 0-0-0/5 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/220-0-20/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/1 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/240-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/2_/FILE-rung_0.csv_FILE-rung_1.csv; Rung :; all the blocks with the following format :; type (see classicladder.h) - ConnectedWithTop - VarType (see classicladder.h) / VarOffset#VER=2.0#LABEL=DCY#COMMENT=Start sequential#PREVRUNG=0#NEXTRUNG=01-0-50/0 , 2-0-50/1 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 50-0-0/11-0-50/2 , 9-0-0/0 , 0-1-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/310-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/00-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/00-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/00-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0_/FILE-rung_1.csv_FILE-rung_7.csv; Rung :; all the blocks with the following format :; type (see classicladder.h) - ConnectedWithTop - VarType (see classicladder.h) / VarOffset#VER=2.0#LABEL=Motors#COMMENT=Actions associated to steps#PREVRUNG=-1#NEXTRUNG=81-0-30/2 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 50-0-0/301-0-30/4 , 0-1-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/01-0-30/1 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 50-0-0/311-0-30/3 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 50-0-0/320-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/00-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0_/FILE-rung_7.csv_FILE-rung_8.csv; Rung :; all the blocks with the following format :; type (see classicladder.h) - ConnectedWithTop - VarType (see classicladder.h) / VarOffset#VER=2.0#LABEL=#COMMENT=#PREVRUNG=7#NEXTRUNG=-11-0-30/7 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 50-0-0/331-0-30/8 , 0-1-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/01-0-30/9 , 0-1-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/01-0-30/5 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 50-0-0/341-0-30/6 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 9-0-0/0 , 50-0-0/350-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 , 0-0-0/0 ,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,-1,-1,-1,-1,-1,-1,-1,0,1,10T6,7,-1,-1,-1,-1,-1,-1,-1,-1,-1,6,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,3,10T7,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,7,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,12T8,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,4T9,3,-1,-1,-1,-1,-1,-1,-1,-1,-1,9,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,3,4C0,0,0/1C1,0,0/2C2,0,0/3C3,0,0/4C4,0,0/5C5,0,0/6C6,0,0/7C7,0,0/8C8,0,0/9C9,0,0/10N0,0,3,1,The first stepN1,0,6,3,SimultaneouslyN2,0,4,11,The last step...N3,0,6,6,Branch switch here !_/FILE-sequential.csv_FILE-ioconf.csv; I/O Configuration_/FILE-ioconf.csv_FILE-modbusioconf.csv; Modbus Distributed I/O Configuration_/FILE-modbusioconf.csv_/FILES_CLASSICLADDER
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?