![Omron SYSMAC CJ1W-SCU21-V1 Operation Manual Download Page 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
Summary of Contents for SYSMAC CJ1W-SCU21-V1
Page 3: ...iv...
Page 5: ...vi...
Page 9: ...x...
Page 15: ...xvi...
Page 89: ...60 Basic Operating Procedure Section 1 9...
Page 151: ...122 RS 232C and RS 422A 485 Wiring Section 3 4...
Page 173: ...144 Host Link Function for Replacing Existing PLCs Section 4 6...
Page 223: ...194 Enhanced Protocol Macro Functions Section 5 6...
Page 277: ...248 Communications Frames Section 6 8...
Page 291: ...262 Basic Operating Procedure in No protocol Mode Section 7 4...
Page 301: ...272 Auxiliary Area and CIO Area Allocations Section 8 3...
Page 391: ...362 Introduction Appendix A...
Page 421: ...392 CompoWay F Master Protocol Appendix B...
Page 513: ...484 E5 K Digital Controller Read Protocol Appendix F...
Page 571: ...542 E5ZE Temperature Controller Write Protocol Appendix I...
Page 587: ...558 E5 J Temperature Controller Protocol Appendix J...
Page 627: ...598 ES100 Digital Controller Protocol Appendix K...
Page 661: ...632 V500 V520 Bar Code Reader Protocol Appendix M...
Page 697: ...668 3Z4L Laser Micrometer Protocol Appendix N...
Page 717: ...688 Visual Inspection System Protocol Appendix O...
Page 755: ...726 V600 V620 ID Controller Protocol Appendix P...
Page 763: ...734 Hayes Modem AT Command Protocol Appendix Q...
Page 767: ...738 Changing Communications Port Settings Using STUP 237 Appendix R...
Page 781: ...752 Revision History...