Table of Contents

Advertisement

3. Instructions

COLM

Instruction
LINE TO COLUMN
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
Source word
D
First destination word
N
Bit number
S: Source word
15 14
S
D: First Destination Word
15
D
D+15
N: Bit Number
Specifies the bit number (0000 to 000F or &0 to &15) to be overwritten by the source word.
Note D and D+15 must be in the same data area.
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
D
OK
OK
OK
N
412
Mnemonic
Variations
COLM
@COLM
Block program areas
Step program areas
OK
OK
Description
1
0
Bits 0 to 15 of S are stored
N
0
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Function
code
Converts the 16 bits of the source word to a col-
umn of bits in a 16-word range of destination
064
words (the same bit number in 16 consecutive
words).
COLM
COLM(064)
S: Source word
S
D: First destination word
D
N
N: Bit number
Subroutines
OK
Data type
WORD
WORD
UINT
N-specified bit of D: Bit 0 of S is output
N-specified bit of D+1: Bit 1 of S is output
:
:
:
N-specified bit of D+15: Bit 15 of S is output
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
OK
---
---
OK
OK
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
1
16
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
TR
bits
---
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents