Shifting Data In Units Of 4 Bits - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Shifting data in units of 4 bits

SMOV(P)
RnPCPU
RnCPU RnENCPU
(Process)
• The RnCPU and RnENCPU with firmware version "17" or later support this instruction. (Use an engineering tool with version "1.020W" or later.)
These instructions distribute and combine data in units of 4 bits.
Ladder
(s)
FBD/LD
EN
ENO
s
d
n1
n2
n3
■Execution condition
Instruction
SMOV
SMOVP
Setting data
■Description, range, data type
Operand
Description
(s)
Device where the specified units of data is stored
*1
(n1)
Start position where the data to be shifted is stored
*1
(n2)
Number of units to be shifted
(d)
Device where the shifted data is stored
*1
(n3)
Start unit position of shit destination
EN
Execution condition
ENO
Execution result
*1 Set values so that (n2)(n1) and (n2)(n3).
6 BASIC INSTRUCTIONS
498
6.7 Data Transfer Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(n1)
(n2)
(d)
(n3)
Execution condition
ST
ENO:=SMOV(EN,s,n1,n2,n3,d);
ENO:=SMOVP(EN,s,n1,n2,n3,d);
Range
Data type
16-bit signed binary
1 to 4
16-bit unsigned binary
1 to 4
16-bit unsigned binary
16-bit signed binary
1 to 4
16-bit unsigned binary
Bit
Bit
Data type (label)
ANY16
ANY16_U
ANY16_U
ANY16
ANY16_U
BOOL
BOOL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents