![Omron SYSMAC CJ1W-SCU21-V1 Скачать руководство пользователя страница 212](http://html1.mh-extra.com/html/omron/sysmac-cj1w-scu21-v1/sysmac-cj1w-scu21-v1_operation-manual_743586212.webp)
183
Using Protocol Macros
Section 5-4
Ladder Programming
Example
The following diagram shows an example in which sequence number 000
(PRESENT VALUE READ) of a Temperature Controller (E5
@
K Read System)
is executed using the PMCR(260) instruction. If the sequence has been com-
pleted normally, the present value that has been read is transferred to another
word.
Communications Port
No. 0 Enabled Flag
Protocol Macro
Executing Flag
Protocol Macro
Executing Flag
If input condition CIO 000000 is ON, Communications
Port No. 0 Enabled Flag A20200 is ON, and Protocol
Macro Executing Flag CIO 191915 is OFF, then se-
quence No. 000 is executed for Serial Communications
Board port 2 and the present value is stored in
DM00201.
If Protocol Macro Executing Flag CIO 191915 turns OFF,
CIO 000100 turns ON (and remains ON for one cycle).
Protocol Macro
Executing Flag
Step Error
Processing Flag
If Protocol Macro Executing Flag CIO 191915 is OFF
and Step Error Processing Flag CIO 191914 is OFF
when CIO 000100 turns ON, then the received present
value in DM00201 is moved to DM00300.
If CIO 000100 is ON (sequence end) and Step Error
Processing Flag CIO 191914 is ON, the sequence ends
abnormally and a FAL(06) instruction (Non-Fatal Diag-
nostic Instruction) is executed.
Protocol Macro
Executing Flag
CIO 191915
Sequence
executed
Sequence
completed
Sequence
re-executed
One cycle
When sequence ended
normally:
Step Error Processing
Flag CIO 191914
When sequence ended
abnormally:
Step Error Processing
Flag CIO 191914
DIFD (14) 000100
MOV (21)
D00201
D00300
FAL (06) 01
Input condition
000000
A20200
191915
191915
000100
191915
191914
191914
PMCR
#02E1
#0000
D00100
D00200
00100
FAL (06) 02
A21900
If the Communications Port Error Flag for port 0 turns
ON, a FAL(06) instruction (Non-Fatal Diagnostic Instruc-
tion) is executed.
Communications
Port No. 0 Error Flag
Step Error
Processing Flag
Present value in DM00201
moved to DM00300
FAL instruction executed
Содержание SYSMAC CJ1W-SCU21-V1
Страница 3: ...iv...
Страница 5: ...vi...
Страница 9: ...x...
Страница 15: ...xvi...
Страница 89: ...60 Basic Operating Procedure Section 1 9...
Страница 151: ...122 RS 232C and RS 422A 485 Wiring Section 3 4...
Страница 173: ...144 Host Link Function for Replacing Existing PLCs Section 4 6...
Страница 223: ...194 Enhanced Protocol Macro Functions Section 5 6...
Страница 277: ...248 Communications Frames Section 6 8...
Страница 291: ...262 Basic Operating Procedure in No protocol Mode Section 7 4...
Страница 301: ...272 Auxiliary Area and CIO Area Allocations Section 8 3...
Страница 391: ...362 Introduction Appendix A...
Страница 421: ...392 CompoWay F Master Protocol Appendix B...
Страница 513: ...484 E5 K Digital Controller Read Protocol Appendix F...
Страница 571: ...542 E5ZE Temperature Controller Write Protocol Appendix I...
Страница 587: ...558 E5 J Temperature Controller Protocol Appendix J...
Страница 627: ...598 ES100 Digital Controller Protocol Appendix K...
Страница 661: ...632 V500 V520 Bar Code Reader Protocol Appendix M...
Страница 697: ...668 3Z4L Laser Micrometer Protocol Appendix N...
Страница 717: ...688 Visual Inspection System Protocol Appendix O...
Страница 755: ...726 V600 V620 ID Controller Protocol Appendix P...
Страница 763: ...734 Hayes Modem AT Command Protocol Appendix Q...
Страница 767: ...738 Changing Communications Port Settings Using STUP 237 Appendix R...
Страница 781: ...752 Revision History...