3. Instructions
774
CS/CJ/NSJ Series Instructions Reference Manual (W474)
ORG
Applicable Program Areas
Operands
P: Port Specifier
C: Control Data
Note Use the same pulse output method when using both pulse outputs 0 and 1.
z Operand Specifications
Instruction Mnemonic Variations
Function
code
Function
ORIGIN SEARCH ORG @ORG 889
ORG(889) performs an origin search or origin
return operation.
Symbol
ORG
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
P Port specifier --- 1
C Control data --- 1
P Port
0000 hex Pulse output 0
0001 hex Pulse output 1
0002 hex Pulse output 2 (CJ2M only)
0003 hex Pulse output 3 (CJ2M only)
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
P,C --- --- --- --- --- --- --- --- --- --- OK --- --- --- --- --- --- ---
P: Port specifier
C: Control data
ORG(889)
P
C
03478
111215
C
Always 0 hex.
Always 0 hex.
Pulse output method (See note.)
0 hex: CW/CCW
1 hex: Pulse + direction
Mode
0 hex: Origin search
1 hex: Origin return