PLC控制4層電梯的自動(dòng)運(yùn)行實(shí)例
NETWORK 1 //以下是電梯向上運(yùn)行控制
//
//NETWORK COMMENTS
//
LD I1.3
O I1.4
O I1.5
O I0.1
O I0.2
O I0.5
O I0.3
O I0.4
A Q0.5
= M1.1
NETWORK 2 //NETWORK TITLE (single line)
//
//NETWORK COMMENTS
//
LD I1.4
O I1.5
O I0.2
O I0.5
O I0.4
A Q0.6
A Q0.0
= M1.2
NETWORK 3
LD I1.5
O I0.5
A Q0.7
A Q0.0
= M1.3
NETWORK 4
LD M1.1
O M1.2
O M1.3
= Q0.0
NETWORK 5 //以下是電梯向下運(yùn)行控制
//
//NETWORK COMMENTS
//
LD I1.2
O I1.3
O I1.4
O I0.3
O I0.4
O I0.0
O I0.1
O I0.2
A Q1.0
= M2.4
NETWORK 6 //NETWORK TITLE (single line)
//
//NETWORK COMMENTS
//
LD I1.2
O I1.3
O I0.3
O I0.0
O I0.1
A Q0.7
A Q0.1
= M2.3
NETWORK 7
LD I1.2
O I0.0
A Q0.6
A Q0.1
= M2.2
NETWORK 8
LD M2.2
O M2.3
O M2.4
= Q0.0
DI點(diǎn):
I0.0 一層請(qǐng)求上樓;
I0.1 二層請(qǐng)求上樓;
I0.2 三層請(qǐng)求上樓;
I0.3 二層請(qǐng)求下樓;
I0.4 三層請(qǐng)求下樓;
I0.5 四層請(qǐng)求下樓;
I0.6 廂體到達(dá)一層;
I0.7 廂體到達(dá)二層;
I1.0 廂體到達(dá)三層;
I1.1 廂體到達(dá)四層;
I1.2 電梯內(nèi)呼一層;
I1.3 電梯內(nèi)呼二層;
I1.4 電梯內(nèi)呼三層;
I1.5 電梯內(nèi)呼四層;
I1.6 開廂門按鈕;
I1.7 關(guān)廂門按鈕;
I2.0 廂門開到位;
I2.1 廂門關(guān)到位;
DO點(diǎn):
O0.0 廂體向上運(yùn)行;
O0.1 廂體向下運(yùn)行;
O0.2 廂體停;
O0.3 開廂門;
O0.4 關(guān)廂門;
O0.5 當(dāng)前廂體在一層;
O0.6 當(dāng)前廂體在二層;
O0.7 當(dāng)前廂體在三層;
O1.0 當(dāng)前廂體在四層;
補(bǔ)充:
M0.1 電梯在一層時(shí)停止指令;
M0.2 電梯在二層時(shí)停止指令;
M0.3 電梯在三層時(shí)停止指令;
M0.4 電梯在四層時(shí)停止指令;
M1.1 電梯在一層時(shí)向上運(yùn)行指令;
M1.2 電梯在二層時(shí)向上運(yùn)行指令;
M1.3 電梯在三層時(shí)向上運(yùn)行指令;