SmartAXIS Touch User’s Manual 20-43
5 Script Coding Examples
20
Script
Script
Operation description
A value of 1 word length from I004 (to I023) is copied to the value of device D0000.
This is the same as BITS2BITS(I004, D0000.0);.
Script
Operation description
The value of device D0100 is copied to the bit states of a value of 1 word length from M0000 (M0000 to M0017).
This is the same as BITS2BITS(D1000.0, M0000);.
*1 Control function only
â–
Example 5.7.27 Copy 1 word from bit devices to a word device
*1
BITS2WORD(I004, D0000);
â–
Example 5.7.28
Copy 1 word from a word device to bit devices
*1
WORD2BITS(D0100, M0000);