User manual OMRON SYSMAC ONE NSJ REFERENCE MANUAL 01-2008
Lastmanuals offers a socially driven service of sharing, storing and searching manuals related to use of hardware and software : user guide, owner's manual, quick start guide, technical datasheets... DON'T FORGET : ALWAYS READ THE USER GUIDE BEFORE BUYING !!!
If this document matches the user guide, instructions manual or user manual, feature sets, schematics you are looking for, download it now. Lastmanuals provides you a fast and easy access to the user manual OMRON SYSMAC ONE NSJ. We hope that this OMRON SYSMAC ONE NSJ user guide will be useful to you.
Lastmanuals help download the user guide OMRON SYSMAC ONE NSJ.
You may also download the following manuals related to this product:
OMRON SYSMAC ONE NSJ REFERENCE MANUAL 08-2008 (26846 ko)
Manual abstract: user guide OMRON SYSMAC ONE NSJREFERENCE MANUAL 01-2008
Detailed instructions for use are in the User's Guide.
[. . . ]
SYSMAC CJ Series
SYSMAC One NSJ Series
Programmable Controllers
INSTRUCTIONS REFERENCE MANUAL
SYSMAC CS Series
CS1G/H-CPU
SYSMAC One NSJ Series Programmable Controllers
Instructions Reference Manual
Revised January 2008
iv
Notice:
OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual. The following conventions are used to indicate and classify precautions in this manual. Always heed the information provided with them. [. . . ] Ladder Symbol
SNUM(638) TB D
TB: First stack address D: Destination word
Variations
Variations Executed Each Cycle for ON Condition SNUM(638) Executed Once for Upward Differentiation @SNUM(638) Executed Once for Downward Differentiation Not supported. Immediate Refreshing Specification Not supported.
Applicable Program Areas
Block program areas OK Step program areas OK Subroutines OK Interrupt tasks OK
Operands
TB through TB+3: Stack control words The first four words of the stack contain the PLC memory address of the last word in the stack and the stack pointer (the PLC memory address of the next available word in the stack. )
15 TB 0
PLC memory address of the last word in the stack (rightmost 4 digits)
15 TB+1 0
PLC memory address of the last word in the stack (leftmost 4 digits)
15 TB+2 0
Stack pointer (rightmost 4 digits) (Initial value is the rightmost 4 digits of the PLC memory address for TB+4. )
15 TB+3 0
Stack pointer (leftmost 4 digits) (Initial value is the leftmost 4 digits of the PLC memory address for TB+4. )
TB+4 through TB+(N1): Data storage region The remainder of the stack is used to store data.
15 0
TB+4 TB+(N1)
Data storage region
743
Table Data Processing Instructions
Operand Specifications
Area CIO Area Work Area Holding Bit Area Auxiliary Bit Area Timer Area Counter Area DM Area EM Area without bank EM Area with bank Indirect DM/EM addresses in binary TB CIO 0000 to CIO 6143 W000 to W511 H000 to H511 A448 to A959 T0000 to T4095 C0000 to C4095 D00000 to D32767 E00000 to E32767 En_00000 to En_32767 (n = 0 to C) @ D00000 to @ D32767 @ E00000 to @ E32767 @ En_00000 to @ En_32767 (n = 0 to C) *D00000 to *D32767 *E00000 to *E32767 *En_00000 to *En_32767 (n = 0 to C) -----
Section 3-17
D
Indirect DM/EM addresses in BCD
Constants Data Registers Index Registers Indirect addressing using Index Registers
DR0 to DR15
--, IR0 to , IR15 2048 to +2047 , IR0 to 2048 to +2047 , IR15 DR0 to DR15, IR0 to IR15 , IR0+(++) to , IR15+(++) , ( )IR0 to, ( )IR15
Description
SNUM(638) counts the number of data words in the specified stack from the beginning of the data region at TB+4 to the address before the one indicated by the stack pointer (TB+3 and TB+2). SNUM(638) does not change the data in the stack or the stack pointer.
Stack
TB TB+1 TB+2 TB+3 TB+4 n m A
PLC memory address
Pointer
Counts the number of words (N) from the address of the beginning of the stack (TB+4) to the pointer position -1.
D N
Last word in stack
m n
Flags
Name Error Flag Label ER Operation ON if the number of words of data in the stack (the value output to D) is 0. OFF in all other cases.
744
Table Data Processing Instructions
Precautions Examples The stack must be defined in advance with SSET(630).
Section 3-17
When CIO 000000 is ON in the following example, SNUM(638) counts the number of words from the beginning of the data region at D00004 to the stack pointer position - 1 (D00006) and outputs the result to D00300. (In this case, the stack pointer indicates D00007. )
SNUM D00000 D00300
000000
PLC memory address
D00000 D00001 D00002 D00003 D00004 D00005 D00006 D00007 D00008 D00009
PLC memory address of last word in the stack
Stack pointer
D:D00300 0003Hex
Last word Stack pointer in stack
Counts number of data words. (3 in this example. )
3-17-15 STACK DATA READ: SREAD(639)
Purpose Reads the data from the specified data element in the stack. The offset value indicates the location of the desired data element (how many data elements before the current pointer position). This instruction is supported by CS1-H, CJ1-H, CJ1M, and CS1D CPU Units only. Ladder Symbol
SREAD(639) TB C D
TB: First stack address C: Offset value D: Destination word
Variations
Variations Executed Each Cycle for ON Condition SREAD(639) Executed Once for Upward Differentiation @SREAD(639) Executed Once for Downward Differentiation Not supported. Immediate Refreshing Specification Not supported.
Applicable Program Areas
Block program areas OK Step program areas OK Subroutines OK Interrupt tasks OK
Operands
TB through TB+3: Stack control words The first four words of the stack contain the PLC memory address of the last word in the stack and the stack pointer (the PLC memory address of the next available word in the stack. )
745
Table Data Processing Instructions
15 TB 0
Section 3-17
PLC memory address of the last word in the stack (rightmost 4 digits)
15 TB+1 0
PLC memory address of the last word in the stack (leftmost 4 digits)
15 TB+2 0
Stack pointer (rightmost 4 digits) (Initial value is the rightmost 4 digits of the PLC memory address for TB+4. )
15 TB+3 0
Stack pointer (leftmost 4 digits) (Initial value is the leftmost 4 digits of the PLC memory address for TB+4. )
TB+4 through TB+(N1): Data storage region The remainder of the stack is used to store data.
15 0
TB+4 TB+(N1)
Data storage region
Operand Specifications
Area CIO Area Work Area Holding Bit Area Auxiliary Bit Area Timer Area Counter Area DM Area EM Area without bank EM Area with bank Indirect DM/EM addresses in binary TB CIO 0000 to CIO 6143 W000 to W511 H000 to H511 A448 to A959 T0000 to T4095 C0000 to C4095 D00000 to D32767 E00000 to E32767 En_00000 to En_32767 (n = 0 to C) @ D00000 to @ D32767 @ E00000 to @ E32767 @ En_00000 to @ En_32767 (n = 0 to C) *D00000 to *D32767 *E00000 to *E32767 *En_00000 to *En_32767 (n = 0 to C) ----#0001 to #FFFB (Hexadecimal) DR0 to DR15 --A000 to A959 A448 to A959 C D
Indirect DM/EM addresses in BCD
Constants Data Registers
746
Table Data Processing Instructions
Area Index Registers Indirect addressing using Index Registers TB --C
Section 3-17
D
, IR0 to , IR15 2048 to +2047 , IR0 to 2048 to +2047 , IR15 DR0 to DR15, IR0 to IR15 , IR0+(++) to , IR15+(++) , ( )IR0 to, ( )IR15
Description
SREAD(639) reads the data from the address specified by the stack pointer (TB+3 and TB+2) minus the offset value in C. SREAD(639) does not change the data in the stack or the stack pointer.
Stack
TB TB+1 TB+2 TB+3 TB+4 n m
PLC memory address
Pointer
A B C
The data (A) is not changed.
m
Offset value
Last word in stack
n
C
Reads the data (A) without changing the stack pointer.
D A
Reads the data (A) in the specified word and outputs that data to D. The address of the desired word is calculated by subtracting the offset value from the stack pointer address.
SREAD(639) can be used to read the data for an item currently on a conveyor. The position of the desired item is simply the number of items back (the offset value) from the most recent item added to the conveyor. Flags
Name Error Flag Label ER Operation ON if the specified read location is not within the stack area. ON if the offset value specified in C is 0 or greater than the maximum data region size (FFFB hex). OFF in all other cases.
Equals Flag
=
Precautions
The stack must be defined in advance with SSET(630). The address in the stack pointer must be greater than the PLC memory address of the beginning of the data region (TB+4). An error will occur if the stack pointer is less than the PLC memory address of TB+4, i. e. , if a stack underflow error occurs.
Examples
When CIO 000000 is ON in the following example, SREAD(639) reads the data in the specified word in the stack starting at D00000 and outputs the data to D00100. In this case, the stack pointer indicates D00007 and the offset value is 3, so the data is read from D00004.
747
Table Data Processing Instructions
000000 SREAD D00000 &3 D00100 D00000 D00001 D00002 D00003 D00004 D00005 D00006 D00007 D00008 D00009
PLC memory address of last word in the stack
Section 3-17
PLC memory address
Stack pointer
A D00100 A
Stack pointer
Last word in stack
-3
Stack pointer
Last word in stack
D00000 D00001 D00002 D00003 D00004 D00005 D00006 D00007 D00008 D00009
PLC memory address of last word in the stack
Stack pointer
A
The stack pointer position remains unchanged after the data is read.
3-17-16 STACK DATA OVERWRITE: SWRIT(640)
Purpose Writes the source data to the specified data element in the stack (overwriting the existing data). The offset value indicates the location of the desired data element (how many data elements before the current pointer position). This instruction is supported by CS1-H, CJ1-H, CJ1M, and CS1D CPU Units only. Ladder Symbol
SWRIT(640) TB C S
TB: First stack address C: Offset value S: Source word
Variations
Variations Executed Each Cycle for ON Condition Executed Once for Upward Differentiation SWRIT(640) @SWRIT(640)
Executed Once for Downward Differentiation Not supported. [. . . ] Page 831: "I/O Unit's" corrected to "Special I/O Unit's. " Pages 844 and 845: Information on first send and read words/addresses changed. Page 899: Information on data file structure from page 912 of previous manual moved to this page. Page : Information on data file structure from pages 912 to 913 of previous manual moved to this page. Page 1110: ASCII code table from page 916 added.
08
September 2002
09
June 2003
1362
Revision code
10
Date
December 2003
Revised content
Information added on functions supported by new unit versions of CPU Units (too numerous to list). [. . . ]
DISCLAIMER TO DOWNLOAD THE USER GUIDE OMRON SYSMAC ONE NSJ
Lastmanuals offers a socially driven service of sharing, storing and searching manuals related to use of hardware and software : user guide, owner's manual, quick start guide, technical datasheets... In any way can't Lastmanuals be held responsible if the document you are looking for is not available, incomplete, in a different language than yours, or if the model or language do not match the description. Lastmanuals, for instance, does not offer a translation service.
Click on "Download the user manual" at the end of this Contract if you accept its terms, the downloading of the manual OMRON SYSMAC ONE NSJ will begin.