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