![background image](http://html.mh-extra.com/html/omron/sysmac-cpm2b/sysmac-cpm2b_operation-manual_1633427133.webp)
115
Application Procedure
Section 6-4
Ladder Programming Example Using Disconnection Detection
The following example shows ladder programming for detecting a disconnec-
tion of inputs 1 and 2 (4 to 20 mA).
Setting Output Data (D/A Conversion Source Data)
The output data is set by writing the output data (4-bit hexadecimal) to the
output words allocated to the Analog I/O Board. After using the output words
for writing the range codes, these words are also used to write output data.
When the output data is outside the specified conversion range, the minimum
value is output if the value is below the minimum value and the maximum
value is output if the value exceeds the maximum value.
Conversion data for analog input 1 that has been
output to IR 004 is compared with the constant
8000 (disconnection detected code).
If the contents of IR 004 is 8000, the output bit
IR 01000 turns ON.
Equals Flag
25506 (=)
TIM005
Execution
condition
Always ON Flag
25313
TIM005
#0002
CMP(20)
004
01000
#8000
Conversion data for analog input 2 that has been
output to IR 005 is compared with the constant
8000 (disconnection detected code).
If the contents of IR 005 is 8000, the output bit
IR 01001 turns ON.
Equals Flag
25506 (=)
CMP(20)
005
01001
#8000
Execution
condition
D/A conversion data
CPM2B-MAD63
CPM2B-MAD42
CPM2B-MAD21
D/A conversion data 0
Word n+1
Word n+1
Word n+1
D/A conversion data 1
Word n+2
Word n+2
---
D/A conversion data 2
Word n+3
---
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание SYSMAC CPM2B
Страница 4: ...iv Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 6: ...vi Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 216: ...198 Index Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...