Icprewr Instruction - Mitsubishi MELSEC-L series Programming Manual

Hide thumbs Also See for MELSEC-L series:
Table of Contents

Advertisement

8.2.3

ICPREWR instruction

ICPREWR1(P)
ICPREWR2(P)
Structured ladder
ICRNGWR1
EN
ENO
s
Input argument
EN:
Executing condition
s:
Preset value (constant), or start number of the device that
stores the preset value
ENO:
Output argument
Execution result
Setting
data
s
Function
This instruction sets a preset value of the specified CH (refer to the following).
• ICPREWR1(P): CH1
• ICPREWR2(P): CH2
Program Example
The following program sets 10000 for the preset value of CH 1 when M0 turns ON.
[Structured ladder]
[ST]
ICPREWR1(M0, 10000);
ST
ENO:=
(EN, s);
ICRNGWR1
Internal device
R, ZR
Bit
Word
Bit
8.2 Counter Function Dedicated Instruction
ICPREWR1, ICPREWR2
ICPREWR1, ICPREWR2
P: Executing condition
indicates any of the following
instructions.
ICPREWR1
ICPREWR1P
ICPREWR2
ICPREWR2P
:Bit
:ANY32
:Bit
J
\
Zn
U
\G
Word
8.2.3 ICPREWR instruction
8
L CPU
:
Constant
Others
8-21

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents