Change Sp Sample Programming - Omron E5AR User Manual

Digital controller devicenet communications
Hide thumbs Also See for E5AR:
Table of Contents

Advertisement

Ladder Programming Examples
4-3-2

Change SP Sample Programming

Outline
Operation
Programming Example
4-16
The ladder programming example here is for setting and changing SP. The
program is for execution under the following conditions.
• Using simple I/O allocation to allocate data in fixed allocation area 1 of a
CS/CJ-series DeviceNet Unit of CS/CJ-series DeviceNet Unit (OUT Area
= CIO 3200 to CIO 3263, IN Area = CIO 3300 to CIO 3363).
This ladder program example sets and changes the SP for the E5AR/ER-
DRT.
Output Enable Bit (CIO 320100) is used to write SP.
• The value used as SP is set in D1000 and D1001 at the start of the ladder
program. In this example, the SP is set to 100.0, so the hexadecimal
number 03E8 is written to D1000.
• Once the execution condition (CIO000000) turns ON, the SP is set to
CIO 3202.
• The Output Enable Bit (CIO320200) is turned ON and the SP is written.
• A timer is used to turn OFF the Output Enable Bit after 0.1 s (see note).
Note: If using this kind of ladder programming, do not use the timer method
shown here. Instead, allocate the SP, check that the setting has changed, and
then turn OFF the Output Enable Bit using the following steps.
1. Use a Configurator or other Programming Device to allocate the SP to the
IN Area.
2. Check that the SP has been written and then turn OFF the Output Enable
Bit.
A200.11
000000
(000000)
First scan
Flag ON
0.00
000001
(000002)
Execution
condition
0.01
000002
(000005)
T0000
000003
(000008)
0.02
000004
(000010)
000005
(000013)
Section 4-3
Moves #03E8 to D1000.
MOV (021)
(Used for setting SP 100.0).
#03E8
D1000
MOV (021)
Copies the contents of D1000
to CIO 3202.
D1000
3202
ASL (025)
Shifts the contents of CIO 0000
one bit to the left.
0
SET
Turns ON Output Enable Bit .
3201.00
TIM
Uses a timer to wait 0.1 s.
0000
1
ASL (025)
Shifts the contents of CIO 0000
one bit to the left.
0
RESET
Turns OFF Output Enable Bit.
3201.00
ASL (025)
Shifts the contents of CIO 0000
0
one bit to the left.
END 001

Advertisement

Table of Contents
loading

This manual is also suitable for:

E5er

Table of Contents