MOVR(560) 000013
IR0
LD
P_Off
SET
,IR0+
Êîìàíäà SET âûïîëíÿåòñÿ òîëüêî òîãäà, êîãäà óñëîâèå ââîäà íàõîäèòñÿ â ñîñòîÿíèè ON. Òà-
êèì îáðàçîì, â ïðèâåäåííîì âûøå ïðèìåðå êîìàíäà SET íå âûïîëíÿåòñÿ è ðåãèñòð IR00 íå
óâåëè÷èâàåòñÿ.
 ñèëó òîãî, ÷òî îäíè îïåðàíäû îáðàáàòûâàþòñÿ êàê äàííûå â âèäå ñëîâ, à äðóãèå êàê äàííûå â âèäå áèòîâ,
çíà÷åíèå äàííûõ â Èíäåêñíîì ðåãèñòðå îòëè÷àåòñÿ â çàâèñèìîñòè îò îïåðàíäà, â êîòîðîì îíè ïðèìåíÿþòñÿ.
1, 2, 3,...
1. Îïåðàíä - ñëîâî
MOVR(560) 0000 IR2
MOV(021) D00000 IR2
Êîãäà îïåðàíä îáðàáàòûâàåòñÿ êàê ñëîâî, ñîäåðæàíèå Èíäåêñíîãî ðåãèñòðà èñïîëüçó-
åòñÿ â òîì âèäå, êàêèì îíî åñòü, ò.å. â âèäå àäðåñà ñëîâà Ïðîãðàììèðóåìîãî êîíòðîëëå-
ðà.
 äàííîì ïðèìåðå êîìàíäà MOVR(560) çàäàåò â IR2 àäðåñ CIO 0002 ïàìÿòè Ïðîãðàììè-
ðóåìîãî êîíòðîëëåðà, à êîìàíäà MOV(021) êîïèðóåò ñîäåðæàíèå D00000 â CIO 0002.
2. Îïåðàíä - áèò
MOVR(560) 000013 IR2
SET +5 ,IR2
Êîãäà îïåðàíä îáðàáàòûâàåòñÿ â âèäå áèòà, 7 íàèáîëåå çíà÷àùèõ öèôð â Èíäåêñíîì ðå-
ãèñòðå óêàçûâàþò àäðåñ ñëîâà, à íàèìåíåå çíà÷àùàÿ öèôðà, óêàçûâàåò íîìåð áèòà. Â
äàííîì ïðèìåðå êîìàíäà MOVR(560) çàäàåò â IR2 àäðåñ CIO 000013 (0C000D) Ïðîãðàì-
ìèðóåìîãî êîíòðîëëåðà. Êîìàíäà SET ïðèáàâëÿåò +5 èç áèòà 13 ê ýòîìó àäðåñó Ïðîã-
ðàììèðóåìîãî êîíòðîëëåðà, ïîýòîìó îíà ïåðåâîäèò áèò CIO 000102 â ñîñòîÿíèå ON.
Èíèöèàëèçàöèÿ Èíäåêñíîãî ðåãèñòðà
Î÷èñòêà Èíäåêñíîãî ðåãèñòðà ïðîèçâîäèòñÿ â ñëåäóþùåì ñëó÷àå.
1, 2, 3,...
1. Êîãäà ðåæèì ðàáîòû èçìåíÿåòñÿ èç ðåæèìà ïðîãðàììèðîâàíèÿ â ðåæèì âûïîëíåíèÿ îïå-
ðàöèé èëè â ðåæèì ìîíèòîðèíãà, èëè â îáðàòíîì ïîðÿäêå, à áèò óäåðæàíèÿ ïàìÿòè ââîäà/âû-
âîäà (IOM Hold Bit) íàõîäèòñÿ â ñîñòîÿíèè OFF.
2. Ïðîèçâîäèòñÿ öèêëè÷åñêîå ïåðåêëþ÷åíèå ïèòàíèÿ Ïðîãðàììèðóåìîãî êîíòðîëëåðà, à áèò
óäåðæàíèÿ ïàìÿòè ââîäà/âûâîäà (IOM Hold Bit) íå çàùèùåí â íà÷àëüíûõ óñòàíîâêàõ Ïðîãðàì-
ìèðóåìîãî êîíòðîëëåðà.
Ðàáîòà IOM Hold Bit
Åñëè áèò IOM Hold Bit (A50012) íàõîäèòñÿ â ñîñòîÿíèè ON, Èíäåêñíûé ðåãèñòð íå î÷èùàåòñÿ ïðè âîçíèêíî-
âåíèè îøèáêè FALS, ïðè èçìåíåíèè ðåæèìà ðàáîòû èç ðåæèìà ïðîãðàììèðîâàíèÿ â ðåæèì âûïîëíåíèÿ îïå-
ðàöèé èëè â ðåæèì ìîíèòîðèíãà, èëè â îáðàòíîì ïîðÿäêå, à òàêæå ïðè âîññòàíîâëåíèè ïîäà÷è ïèòàíèÿ ïîñëå
åãî ïðåðûâàíèÿ.
Êîãäà áèò IOM Hold Bit (A50012) íàõîäèòñÿ â ñîñòîÿíèè ON, è â íà÷àëüíûõ óñòàíîâêàõ Ïðîãðàììèðóåìîãî
êîíòðîëëåðà ïàðàìåòð «Ñîñòîÿíèå IOM Hold Bit ïðè çàïóñêå» óñòàíîâëåí â ðåæèì çàùèòû ñîñòîÿíèÿ ýòîãî
áèòà, è åñëè Èíäåêñíûå ðåãèñòðû íå èñïîëüçóþòñÿ îäíîâðåìåííî ðàçëè÷íûìè çàäà÷àìè (óñòàíîâêà ïî óìîë-
÷àíèþ), ïðè ïðåðûâàíèè ïèòàíèÿ Èíäåêñíûå ðåãèñòðû áóäóò ñîõðàíÿòüñÿ ñëåäóþùèì îáðàçîì. Äëÿ çàäà÷,
êîòîðûå çàâåðøàþòñÿ äî ïðåðûâàíèÿ ïèòàíèÿ, çíà÷åíèÿ ñîõðàíÿþòñÿ â öèêëå, â êîòîðîì ïðîèñõîäèò ïðåðû-
âàíèå ïèòàíèÿ. Äëÿ çàäà÷, êîòîðûå íå çàâåðøåíû ïåðåä ïðåðûâàíèåì ïèòàíèÿ, óäåðæèâàþòñÿ çíà÷åíèÿ öèê-
ëà, ïðåäøåñòâóþùåãî ïðåðûâàíèþ. Íàïðèìåð, åñëè â ïðîãðàììå ñ òðåìÿ çàäà÷àìè 0, 1 è 2 ïîäà÷à ïèòàíèÿ
ïðåðûâàåòñÿ â öèêëå «n» â ïðîöåññå âûïîëíåíèÿ çàäà÷è 1, óäåðæèâàåòñÿ ðåçóëüòàò âûïîëíåíèÿ çàäà÷è 0 äëÿ
öèêëà «n» è ðåçóëüòàòû âûïîëíåíèÿ çàäà÷ 1 è 2 â öèêëå «n-1».
Êîãäà áèò IOM Hold Bit (A50012) íàõîäèòñÿ â ñîñòîÿíèè ON, â íà÷àëüíûõ óñòàíîâêàõ Ïðîãðàììèðóåìîãî
êîíòðîëëåðà ïàðàìåòð «Ñîñòîÿíèå IOM Hold Bit ïðè çàïóñêå» óñòàíîâëåí â ðåæèì çàùèòû ýòîãî áèòà, è åñëè
Èíäåêñíûå ðåãèñòðû èñïîëüçóþòñÿ îäíîâðåìåííî ðàçëè÷íûìè çàäà÷àìè, ïðè öèêëè÷åñêîì ïåðåêëþ÷åíèè
ïèòàíèÿ (ïåðåóñòàíîâêà ON
®
OFF
®
ON) Èíäåêñíûå ðåãèñòðû íå óäåðæèâàþòñÿ.  ýòîì ñëó÷àå Èíäåêñíûå
ðåãèñòðû ìîãóò ïðèíÿòü íåîïðåäåëåííûå çíà÷åíèÿ. Íåïðåìåííî óñòàíîâèòå òðåáóåìûå çíà÷åíèÿ ïåðåä
ïðîäîëæåíèåì âûïîëíåíèÿ îïåðàöèé.
Ïðèíóäèòåëüíîå ñîñòîÿíèå áèòà
Áèòû Èíäåêñíûõ ðåãèñòðîâ íå ìîãóò ïðèíóäèòåëüíî óñòàíàâëèâàòüñÿ è ïðèíóäèòåëüíî ïåðåóñòàíàâëèâàòü-
ñÿ.
Íåïîñðåäñòâåííàÿ àäðåñàöèÿ
Êîãäà Èíäåêñíûé ðåãèñòð èñïîëüçóåòñÿ â êà÷åñòâå îïåðàíäà áåç ïðåôèêñà «,», êîìàíäà îïåðèðóåò ñîäåðæà-
íèåì ñîáñòâåííî Èíäåêñíîãî ðåãèñòðà (äâîéíîå ñëîâî èëè äâîéíîå çíà÷åíèå). Èíäåêñíûå ðåãèñòðû ìîãóò
óêàçûâàòüñÿ íåïîñðåäñòâåííî òîëüêî â êîìàíäàõ, ïîêàçàííûõ â ñëåäóþùåé íèæå òàáëèöå. Ïðèìåíÿéòå ýòè
êîìàíäû äëÿ ðàáîòû ñ Èíäåêñíûìè ðåãèñòðàìè êàê óêàçàòåëè.
 ñèñòåìàõ ñ îäíèì Ìîäóëåì öåíòðàëüíîãî ïðîöåññîðà çíà÷åíèÿ èíäåêñíûõ ðåãèñòðîâ ïðè çàïóñêå çàäà÷è
ïðåðûâàíèÿ íåñòàáèëüíû. Ïðè èñïîëüçîâàíèè èíäåêñíûõ ðåãèñòðîâ â çàäà÷àõ ïðåðûâàíèÿ âñåãäà â çàäà÷å
ïðåðûâàíèÿ èñïîëüçóéòå êîìàíäó MOVR (äëÿ âñåõ çíà÷åíèé êðîìå òåêóùèõ çíà÷åíèé òàéìåðîâ/ñ÷åò÷èêîâ)
– 270 –
Ãëàâà 8
Îáëàñòè ïàìÿòè
Summary of Contents for C1SD-PD
Page 2: ...OMRON OMRON OMRON OMRON Ch OMRON Wd L PC 1 2 3 1 3...
Page 5: ...Ver CS1H CPU67H CS1 H 2 0 CS1H CPU67H _ _ CS1H CS1 H 2 0 CS1 H _ _ CS CS1 H 2 0 CS _ _ 6...
Page 8: ...CX Compile CX 4 0 2 0 2 0 2 0 CX 4 0 2 0 2 0 2 0 CX CX 3 0 2 0 CX 3 0 CX 4 0 9...
Page 9: ...10...
Page 18: ...CS1D CS1D CPUH CS1D DPL01 CS1D PA207R 19...
Page 19: ...1 2 OMRON OMRON 3 EM 20...
Page 20: ...CS1D OFF FALS FALS ON OFF 24 OFF EM CIO CS1D DM EM HR DM EM HR DM EM HR A40204 ON 4 21 4...
Page 23: ...BUSY I O Hold bit ON OFF RUN Monitor Program FALS 007 OFF DM EM HR A40204 200 240 200240 24...
Page 24: ...DM DM HR RS 232C UL 6 EC 6 1 EMC 25 6 EC...
Page 26: ...24 48 100 200 1 0 5 1 0 5 1 1 200 300 RC 10 3 24 48 100 200 1 27 6 EC L R OUT COM...
Page 27: ...2 28 L R OUT COM...
Page 28: ...1 29...
Page 37: ...38 1...
Page 38: ...2 39...
Page 64: ...A3160 ON DIP L ACTIVE ACT STB CPU STATUS c RUN MONITOR 65 2 3...
Page 65: ...FALS R ACTIVE ACT STB CPU STATUS c RUN MONITOR FALS 66 2...
Page 68: ...2 4 2 RUN RUN MONITOR ERR ALM OFF INH A50015 ON OFF 69 2 4 RS 232C 3 1 CX PT 3 1 S MCPWR BUSY...
Page 73: ...EM RAM EM 74 2 RAM 5 25 C 0 1 1 EM...
Page 74: ...2 4 4 75 2 4...
Page 76: ...FWRIT A343 FREAD DIP CS 7 8 DIP OFF 7 ON CS CJ EM CS1D EM EM EM EM EM EM EM 77 2 5...
Page 81: ...2 D 3 1 2 3 1 2 BUSY 82 2...
Page 82: ...3 4 1 2 BUSY 3 83 2 5 BUSY...
Page 101: ...RDY ON OFF 300 CV500 TER01 CV500 TER01 CV 102 2 Cs1 68 12 37 IC102 CS ADM TERM ERR IN OUT...
Page 108: ...109 2 10 Backplane 123 169 32 64 179 96 35 35 35 130 130 130 101 a b c...
Page 115: ...116 2...
Page 116: ...3 117...
Page 118: ...86 CS1D R L A32809 119 3 1...
Page 123: ...3 1 4 124 3...
Page 124: ...1 DPL ON A32814 ON A32815 ON 2 A019 A020 A022 3 1 5 Duplex Initialization 3 1 5 125 3 1...
Page 128: ...1 1 FAL 1 2 1 2 A332 USE NO USE 129 3 1...
Page 129: ...FALS USE NO USE FALS SPL DPL 3 2 CS1D CS1D PA207R CS1D 130 3...
Page 132: ...4 CS1D 133...
Page 142: ...DM ON 9 CX 10 DM 1 2 3 1 2 3 1 DM 2 DPL STATUS DPL STATUS 11 143 4 2 DUPLEX Cs1...
Page 145: ...146 4...
Page 146: ...5 147...
Page 148: ...ON 5 2 5 2 1 0 55 10 90 149 5 2 MC2 MC1 000501 000502 M 1 C M 2 C CR1 CS1D RUN CR1 MCB1 MCB 2...
Page 149: ...0 C 55 C 55 C 0 C 45 C 1 1 6 200 150 5 PLC 200 200 PLC...
Page 150: ...5 2 2 CS1D PA207R 50 C 80 151 5 2...
Page 151: ...12 12 2 2 4 152 5 20 20 CS1D PA207R CS1D PA207R 80 80 80 80...
Page 152: ...0 9 0 9 0 4 0 4 0 9 3 5 0 8 3 0 5 2 6 0 2 20 50 C 80 153 5 2 30 118 153 40 30...
Page 153: ...5 2 3 123 153 154 5 1 153 23 180 223 200...
Page 158: ...1 2 159 5 2 CV B A...
Page 160: ...2 3 5 3 CS1D CS1D RUN ON RUN CS1D 161 5 3...
Page 167: ...CS1D GR GR 100 LR GR 2 2 1 1 3 5 1 2 3 0 8 4 3 5 5 4 2 CS 168 5 7 max 7 max LG GR GR CS...
Page 168: ...AWG 22 0 32 2 3 5 1 2 3 0 8 4 3 5 133 0 8 169 5 4 6 5 max 7 max 3 5...
Page 170: ...AWG 28 AWG26 0 2 2 0 13 2 1 61 1 2 3 1 2 3 4 56 171 5 4 0 2 0 13 2 2...
Page 171: ...5 6 7 0 2 OMRON OMRON 172 5 3 2 2 3 2...
Page 174: ...GR 50 0 47 200 1 300 12 175 5 4 L IN COM L OUT COM L L OUT COM L L 1 2 1 2 1 2...
Page 175: ...176 5 100 200 300 300 100...
Page 176: ...6 177...
Page 181: ...84 84 15 0 1 0 1 0 1 1 2 2003 6 2 2 CPU Settings 128 15 0 1 0 0 ERR ALM A40204 ON A40204 182 6...
Page 183: ...EM 136 0 3 0 C 0 12 0 7 1 EM EM 7 0 A344 EM FINS 198 15 0 1 0 198 14 0 1 0 198 13 0 1 0 184 6...
Page 185: ...195 0 3 0 10 1 1 0 0 225 0 7 00 0A 0 10 10 00 10 25 2 5 85 0 225 0 7 0 1 0 1 186 6...
Page 197: ...6 2 10 CX 3 CS1D 0 15 121 0 15 0 1 0 00 15 0 F CX 198 6...
Page 198: ...CS1D 0 15 95 0 15 0 1 0 00 15 0 F CX CS1D 1 1 CX 4 0 6 2 11 CPU Duplex 199 6 2...
Page 199: ...123 14 0 1 0 123 15 0 1 0 WTD 130 15 0 1 00 CX 3 1 200 6...
Page 201: ...96 11 0 1 0 2003 96 11 0 1 0 2003 6 2 12 122 15 0 1 0 202 6...
Page 202: ...7 203...
Page 207: ...4 16 CS1W ID211 1 CIO 0006 CX CS CX 0 1 A B 1 2 CX 1 2 3 1 I O Table 2 Dummy 208 7...
Page 212: ...3 00 4 CIO 0000 Edit 5 OK 6 Add 00 63 00 1 7 00 00 00 99 0 0 999 0 CX 213 7 4...
Page 216: ...A50100 A50115 ON FINS FINS CMND 490 FINS A50100 A50115 ON A30200 A30215 ON ON 217 7 6...
Page 217: ...218 7...
Page 218: ...8 219...
Page 276: ...0 02 10 0 1 0 2 1 1 0 02 10 10 0 1 0 2 1 1 8 22 8 22 1 6 8 22 2 277 8 22...
Page 278: ...8 22 4 1 Controller Link Controller link 2 Ethernet Ethernet IP 279 8 22 Cs1 C 1 S...
Page 279: ...280 8...
Page 280: ...9 281...
Page 281: ...9 1 9 1 1 D D D D 282 9...
Page 282: ...9 1 3 CIO 283 9 1 DIP DIP OFF FALS 007 OFF FALS 007 1 DM DM 2 3 RS 232C RS 232C...
Page 286: ...EM 220C PROGRA M AREA FIL E TRANSFE R CS1D CPU_P FALS 287 9 1...
Page 290: ...0 85 0 10 0 291 9 3 85 5 10 10 25 0 10 10 0 85 0 10 10 25 10 25 25...
Page 293: ...294 9 ERR ALM READY...
Page 297: ...RS 232C 1 2 5 1 2 3 4 5 1 0 3 2 3 4 5 EM CS CS RS 232C 2 1 2 298 9...
Page 304: ...0 1 0 5 124 1 1 C200H 2 ON 1 MSKS690 1 1 CS 0 1 9 6 CS1D ON 1 7 1 CS OMRON C CV CS CS 305 9 6...
Page 324: ...10 325...
Page 326: ...A300 ON 10 2 10 2 1 CS1D D S FALS FAL 327 10 2...
Page 327: ...D S A322 10 2 2 328 10...
Page 329: ...DPL STATUS 3 ACTIVE 2 CPU STATUS 3 1 RUN MONITOR 2 ACTIVE 3 10 2 3 330 10...
Page 338: ...A A400 A29510 3 EM EM DM EM A298 A299 A29509 DM EM A298 A299 A29508 A298 A299 339 10 2...
Page 339: ...A A400 A29513 A29514 A29515 UM CYCLE TIME ERR A40108 809F USE NOT USE NO USE USE FALS 340 10...
Page 348: ...10 2 6 D 349 10 2 CPU STATUS NO USE USE...
Page 350: ...D 351 10 2 10 2 7 A31602 ON A319 A320 DPL STATUS DPL STATUS...
Page 351: ...10 2 7 352 10 100 120 200 240...
Page 352: ...10 2 8 353 10 2 2 DIP OFF A40309 ON A40310 ON BCUP OFF OFF ON ON...
Page 354: ...10 2 11 10 2 12 355 10 2 DM CS CJ CX A406 CX...
Page 355: ...10 2 13 10 2 14 SOL1 ON 356 10 55C 0 C 10 90...
Page 360: ...3 1 2 3 4 5 1 2 3 4 5 361 10 3...
Page 361: ...362 10...
Page 362: ...11 363...
Page 363: ...11 1 11 1 1 CS1D Inspection Points 1 2 3 0 55 C 0 55 C 10 90 4 364 11...
Page 367: ...1 2 3 1 2 3 25 C 4 5 UL 11 3 368 11...
Page 377: ...CS1W HIO01 V1 CS1W HCP22 V1 CS1W HCA22 V1 CS1W HCA12 V1 DM DM CX 1 V1 online 1 V1 CX 2 378 11...
Page 383: ...384 11...
Page 384: ...A 385...
Page 413: ...414 A...
Page 414: ...B 415...
Page 458: ...A29513 A25912 END 001 A29511 A29510 DM EM A29509 459...
Page 459: ...460 B...
Page 460: ...C 461...
Page 463: ...464 C...
Page 464: ...D 465...
Page 472: ...F 473...
Page 475: ...CS1D CS1 H CS1 EM EM A39512 6 DIP 476 F...
Page 476: ...E RS 232C 477...
Page 484: ...FG 1 2 3 30 10 4 5 6 FG 1 2 3 4 5 485 40 RS 232C 10 5 40 RS 232C 5...
Page 485: ...1 2 3 4 486 E RS 232C 1 1 5 10 FG FG...
Page 486: ...0 4 487...
Page 487: ...488 E RS 232C...
Page 488: ...Cat No W405 RU2 04 Cat No W405 RU2 04 SYSMAC CS CS1D...