Omron SYSMAC C200H-TC Operation Manual page 61

Table of Contents

Advertisement

Programming
Sample Program
A20011
200701
1 cycle ON
CPU Unit
Reading Monitored Data
Example 1: Write Set for Normal Memory Allocations
Description and Conditions
Sample Program
52
Downloaded from
Elcodis.com
electronic components distributor
200700
Fixed
Be sure to set the correct values for the Loop 1 and Loop 2 SP. The value is
#0000 (0 C) if no data is set.
If the executed bank number is set to a value out of the range from 1 to 8, the
bank number reverts to the previous value (default value = 1).
Read monitored data into the program using Wd (n+3) to (n+9).
Example
The user program makes the following settings.
This example writes to EEPROM. To write to RAM, add 4 to the leftmost
digit of the command.
Loop 1 SP = 200 C (Bank no. = 1)
Loop 2 SP = 250 C (Bank no. = 2)
Loop 1 executed bank number = 1
Loop 2 executed bank number = 2
Loop 1 heater burnout current value = 2.0 A
Loop 2 heater burnout current value = 2.5 A
Conditions C200H-TC001 (thermocouple)
SW202 set to 2 (K).
Unit number set to 0 (allocated memory: CIO 2000 to CIO 2009).
SW2-1 set ON (Normal) and SW2-2 set ON (CPU Unit).
MOV (021)
Set #0080 for word 2000 (Loop 1 SP).
#0080
2000
MOV (021)
Set #0200 for word 2001 (Loop 2 SP).
#0200
2001
Set #1300 for word 2002 (executed bank number).
MOV (021)
#1300
#1300
2002
END (001)
Section 4-3
Loop 2 executed bank number
Loop 1 executed bank number

Advertisement

Table of Contents
loading

Table of Contents