User manual OMRON CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION

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 CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION. We hope that this OMRON CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION user guide will be useful to you.

Lastmanuals help download the user guide OMRON CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION.


Mode d'emploi OMRON CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION
Download
Manual abstract: user guide OMRON CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION

Detailed instructions for use are in the User's Guide.

[. . . ] W438-E1-01 SYSMAC WS02-CXPC1-E-V50 CS1-H, CJ1-H, CJ1M CPU Units CX-Programmer Ver. 5. 0 OPERATION MANUAL Function Blocks CX-Programmer Ver. 5. 0 WS02-CXPC1-E-V50 CS1-H, CJ1-H, CJ1M CPU Units Operation Manual Function Blocks Produced July 2004 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. [. . . ] · Word addresses: Specify the constant offset of the Index Register using an indirect specification (e. g. , +a, IR0). · Bit addresses: Specify an instruction that can specify a bit address within a word (e. g. , &b in second operand of SETB instruction when writing and TST instruction when reading). Example: Special I/O Units Instance for function block definition A. 1) Specify the first CIO Area word n (n = CIO 2000 + unit number × 10) Used constants: Unit number (input variable, INT data type) Offset (internal variable, DINT data type) Relay (internal variable, WORD data type, 400 array elements, AT setting = 2000) &3 Unit No. &10 Unit No. Offset Multiplies unit number by &10 and stores in offset. MOVR Relay IR0 Stores the real I/O memory address for the relay in IR0. +L IR0 Offset IR0 Adds offset to IR0. 2) Specify the designated bit in the CIO Area (e. g. , CIO word n+1, bit 02) SETB +1, IR0 &2 Turns ON CIO word n+1, bit 02. 2-4-6 Using Index Registers Index Registers IR0 to IR15 function as pointers for specifying I/O memory addresses. These Index Registers can be used within function blocks to directly specify addresses using IR0 to IR15 and not the variable names (Index Register direct specification: IR0 to IR15; Index Register indirect specification: , IR0 to , IR15) Note After storing the real I/O memory addresses in the Index Registers using the MOVR(560) instruction, Index Registers can be indirectly specified using general instructions. This enables all I/O memory areas to be specified dynamically. 46 Function Block Applications Guidelines Pointer All I/O memory areas Section 2-4 MOVR(560) IR@ Index Register Example: Specifying +5, IR0 using Specify address constant offset specification, not in IR0 variable name Function block Indirect +5 offset specifiInstruction cation Specify ad+5, IR0 dress at +5 a IR0 offset from IR0. I/O memory Note (1) When Index Registers IR0 to IR15 are used within function blocks, using the same Index Register within other function blocks or in the program outside of function blocks will create competition between the two instances and the program will not execute properly. Therefore, when using Index Registers (IR0 to IR15), always save the value of the Index Register at the point when the function block starts (or before the Index Register is used), and when the function block is completed (or after the Index Register has been used), incorporate processing in the program to return the Index Register to the saved value. Example: Starting function block (or before using Index Register): 1. Save the value of IR (e. g. , A). Value A Value A IR0 Within function block: 2. Use IR. Value B IR0 At start of function block (or before Index Register is used): 3. Return IR to saved valuev(e. g. , A) Value A Value A IR0 (2) Always set the value before using Index Registers. Operation will not be stable if Index Registers are used without the values being set. 47 Function Block Applications Guidelines Application Examples Section 2-4 The following examples are for using Index Registers IR0 to IR15 within function blocks. Details When Index Registers are used within this function block, processing to save the Index Register value is performed when the function starts (or before the Index Register is used) to enable the value to be returned to the original Index Register value after the function block is completed (or after the Index Register is used). Example: Save the contents of Index Register IR0 by storing it in SaveIR[0] (internal variable, data type DINT, 1 array element). Example: The real I/O memory address for the first word of CIO 1500 + unit number × 25 allocated in the CPU Bus Unit allocation area based on the CPU Bus Unit's unit number (&0 to &15) passed from the function block is stored in IR0. Procedure: Assumes that unit numbers &0 to &15 have already been input (from outside the function block) in UnitNo (input variables, INT data type). Multiple UnitNo by &25, and store in Offset (internal variable, DINT data type) 2. Store the real I/O memory address for SCPU_Relay (internal variable, WORD data type, (if required, specify the array as 400 elements (see note), AT setting = 1500)) in Index Register IR0. Note Specifying an array for SCPU_relay, such as SCPU_relay [2], for example, enables the address CIO 1500 + (UnitNo × &25) + 2 to be specified. Increment the real I/O memory address in Index Register IR0 by the value for the variable Offset (variable UnitNo × &25). Example Saving the Index Register Value before Using Index Register Store IR0 temporarily in backup buffer Using Index Registers 1) Setting the value in the Index Register. (Stores the real I/O memory address for first CIO Area word n) Calculate offset address from unit number 48 Precautions for Instructions with Operands Specifying the First or Last of Multiple Section 2-5 Example 2) Specifying constant offset of Index Register (Specifying a bit between CIO n+0 to n+24) Details The real I/O memory address for CIO 1500 + (UnitNo × &25) is stored in Index Register IR0 by the processing in step 1 above. Therefore the word address is specified using the constant offset from IR0. For example, specifying +2, IR0 will specify CIO 1500 + (UnitNo × &25) + 2. Note CIO 1500 + (UnitNo × &25) + 2 can also by specified by specifying SCPU_relay [2] using the array setting with SCPU_relay. Specify bit addresses using instructions that can specify bit addresses within words (e. g. , second operand of TST(350/351)/ SETB(532) instructions). Check local node data link participation Example: Variable NodeSelf_OK turns ON when NetCheck_OK (internal variable, BOOL data type) is ON and bit 15 of the word at the +6 offset from IR0 (CIO 1500 + UnitNo × &25 +6) is ON. [. . . ] For example, use of the EXIT statement outside a loop syntax. Data may be lost due to conversion of a data type with a large data size to a data type with a small data size. Example Appendix B Conversion from '%s' to '%s', possible loss of data Y:=DINT_TO_INT(X); (*X is a DINT type variable, Y is an INT type variable*) Commonly Asked Questions Q: How is a hexadecimal value expressed?A: Add "16#" before the value, e. g. , 16#123F. [. . . ]

DISCLAIMER TO DOWNLOAD THE USER GUIDE OMRON CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION

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 CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION will begin.

Search for a user manual

 

Copyright © 2015 - LastManuals - All Rights Reserved.
Designated trademarks and brands are the property of their respective owners.

flag