290
8 BUILT-IN I/O FUNCTION INSTRUCTION
8.2 Counter Function Dedicated Instruction
Preset value write
ICPREWR1, ICPREWR2
The following instruction can go in the dotted squares.
ICPREWR1, ICPREWR1P, ICPREWR2, ICPREWR2P
■
Executing condition
■
Argument
Processing details
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.
Instruction
Executing condition
ICPREWR1
ICPREWR2
ICPREWR1P
ICPREWR2P
Input/output
argument
Name
Description
Data type
Input argument
EN
Executing condition
Bit
s
Preset value (constant), or start number of the
device that stores the preset value
• Constant: Settings which is within the range of -
2147483648 to 2147483647
• Device: Within the range of specified device
ANY32
Output argument
ENO
Execution result
Bit
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
Others
Bit
Word
Bit
Word
(s)
[Structured ladder/FBD]
[ST]
ICPREWR1( M0 , 10000 );
LCPU
ST
ICRNGWR1
EN
ENO
s
ICRNGWR1
(EN, s);
ENO:=
Structured ladder/FBD
Содержание MELSEC System Q
Страница 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Страница 2: ......
Страница 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Страница 309: ...I 307 MEMO ...
Страница 315: ......