Script – IDEC High Performance Series User Manual

Page 1009

Advertising
background image

WindO/I-NV2 User’s Manual

20-45

5 Script Coding Examples

20

Script

Script

Operation description
Copies the value of 10 word devices from LDR200 (up to LDR209) to 10 word devices from LDR100 (up to LDR109).

Script

Operation description
Copies the third bit of 10 words from LDR100 (up to LDR109) to the bit state for 10 bits of devices from LM0 (up to LM9).

Example 5.7.24 Word-unit data copy

MEMCPY([LDR 100], [LDR 200], 10);

LDR100

LDR101

LDR102

LDR108

LDR109

LDR200

LDR201

LDR202

LDR208

LDR209

Copy each

LDR107

LDR207

Even if the data type is set to BIN32+, BIN32+/-, BCD8, or float32, the data is copied from the start device
in word units.

Example 5.7.25 Bit-unit data copy

MEMCPY([LM 0], [LDR 100-2], 10);

3rd bit of LDR100

3rd bit of LDR101

3rd bit of LDR102

3rd bit of LDR108

3rd bit of LDR109

LM0

LM1

LM2

LM8

LM9

3rd bit of LDR107

LM7

Copy each

Even if the data type is set to BIN32+, BIN32+/-, BCD8, or float32, the bits are copied from the start device
in bit units.

Advertising
This manual is related to the following products: