User manual OMRON CP1E 12-2009

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 CP1E. We hope that this OMRON CP1E user guide will be useful to you.

Lastmanuals help download the user guide OMRON CP1E.


Mode d'emploi OMRON CP1E
Download

You may also download the following manuals related to this product:

   OMRON CP1E INTRODUCTION MANUAL (10511 ko)

Manual abstract: user guide OMRON CP1E12-2009

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

[. . . ] W483-E1-03 SYSMAC CP Series CP1E-E_D_-_ CP1E-N_D_-_ CP1E-NA_D_-_ CP1E CPU Unit INSTRUCTIONS REFERENCE MANUAL © OMRON, 2009 All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of OMRON. No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice. [. . . ] Subtracts 8-digit (double-word) BCD data and/or constants. ­B ­BL ­B(414) Symbol ­BL(415) Mi: Minuend word Su: Subtrahend word R: Result word Mi Su R Mi: 1st minuend word Su: 1st subtrahend word R: 1st result word Mi Su R Applicable Program Areas Area Usage Step program areas OK Subroutines OK Interrupt tasks OK Operands Data type Operand ­B: Minuend word ­BL: First minuend word ­B: Subtrahend word ­BL: First subtrahend word ­B: Result word ­BL: First result word Description ­B Mi WORD ­BL DWORD ­B 1 ­BL 2 Size Su WORD DWORD 1 2 R WORD DWORD 1 2 Operand Specifications Word addresses Area CIO Mi, Su OK R OK OK OK OK OK OK OK OK --WR HR AR T C DM @DM *DM OK ------Indirect DM addresses Constants CF Pulse bits TR bits Flags Operation Name Error Flag Label ­B P_ER · ON when Mi is not BCD. Equals Flag P_EQ · ON when the result is 0. Carry Flag P_CY · ON when the subtraction results in a borrow. ­BL · ON when Mi and/or Mi +1 are not BCD. · ON when Su and/or Su +1 are not BCD. · ON when the subtraction results in a borrow. · OFF in all other cases. 2-172 CP1E CPU Unit Instructions Reference Manual(W483) 2 Instructions Function ­B Symbol Math Instructions ­B(414) subtracts the BCD values in Su from Mi and outputs the result to R. If the result of the subtraction is negative, the result is output as a 10's complement. Mi Su CY will turn ON when there is a borrow. CY R (BCD) (BCD) (BCD) ­BL ­BL(415) subtracts the BCD values in Su and Su+1 from Mi and Mi+1 and outputs the result to R, R+1. If the result is negative, it is output to R, R+1 as a 10's complement. 2 ­B/­BL Mi +1 Mi Su R (BCD) (BCD) (BCD) ­ CY will turn ON when there is a borrow. CY Su+1 R+1 Hint · 10's Complement A 10's complement is the value obtained by subtracting each digit from 9 and adding one to the result. For example, the 10's complement for 7556 is calculated as follows: 9999 - 7556 + 1 = 2444. For a four digit number, the 10's complement of A is 9999 ­ A + 1 = B. To obtain the true number from the 10's complement B: A = 10000 ­ B. For example, to obtain the true number from the 10's complement 2444: 10000 ­ 2444 = 7556. Example: 9, 583, 960 ­ 17, 072, 641 = -7, 488, 681. (BCD) 0. 00 RSET 21. 00 -BL 200 120 D100 P_CY -BL #00000000 D100 D100 P_CY SET 21. 00 "-"display (2) (1) In this example, the eight-digit BCD content of CIO 121 and CIO 120 is subtracted from the content of CIO 201 and CIO 200, and the result is output in eight-digit BCD to D101 and D100. The result is negative, so the instruction at (2) will be executed, and the true value will then be output to D101 and D100. CP1E CPU Unit Instructions Reference Manual(W483) 2-173 2 Instructions Subtraction at (1) Mi+1: CIO 201 0 9 5 8 S1: CIO 200 3 9 6 0 Su+1: CIO 121 S2: CIO 120 2 6 4 1 ­ 1 7 0 7 09583960+(100000000-17072641) CY 1 R+1: D101 9 2 5 1 R+1: D100 1 3 1 9 The Carry Flag (CY) is ON, so the result is subtracted from 0000 0000. Subtraction at (2) 0 0 0 0 0 0 0 0 Su+1: D101 Su: D100 1 3 1 9 ­ 9 2 5 1 00000000+(100000000-92511319) CY 1 R+1: D101 0 7 4 8 R+1: D100 8 6 8 1 Final Subtraction Result Mi+1: CIO 201 0 9 5 8 Mi: CIO 200 3 9 6 0 Su+1: D101 Su: D100 2 6 4 1 The Carry Flag (CY) will be turned ON, so the actual number is ­ 7, 488, 681. Because the content of D101 and D100 is negative, CY is used to turn ON CIO 21. 00 to indicate this. ­ CY 1 1 7 0 7 R+1: D101 0 7 4 8 R+1: D100 8 6 8 1 Sample program 0. 00 -B D100 D110 D120 When CIO 0. 00 is ON in the following example, D110 is subtracted from D100 as 4-digit BCD values, and the result will be output to D120. 0. 00 -BL D100 D110 D120 When CIO 0. 00 is ON in the following example, D111 and D110 will be subtracted from D101 and D100 as 8-digit BCD values, and the result will be output to D121 and D120. If the result of the subtraction is a negative number (Mi<Su or Mi+1, Mi <Su+1, Su), the result is output as a 10's complement. To convert the 10's complement to the true number, a program which subtracts the result from 0 is necessary, as an input condition of the Carry Flag (CY). The Carry Flag turning ON thus indicates that the result of the subtraction is negative. 2-174 CP1E CPU Unit Instructions Reference Manual(W483) 2 Instructions ­BC/­BCL Symbol Math Instructions Instruction BCD SUBTRACT WITH CARRY DOUBLE BCD SUBTRACT WITH CARRY Mnemonic ­BC ­BCL Variations @­BC @­BCL Function code 416 417 Function Subtracts 4-digit (single-word) BCD data and/or constants with the Carry Flag (CY). Subtracts 8-digit (double-word) BCD data and/or constants with the Carry Flag (CY). ­BC ­BCL ­BC(416) Symbol ­BCL(417) Mi: Minuend word Su: Subtrahend word R: Result word Mi Su R Mi: 1st minuend word Su: 1st subtrahend word 2 ­BC/­BCL R: 1st result word Mi Su R Applicable Program Areas Area Usage Step program areas OK Subroutines OK Interrupt tasks OK Operands Data type Operand ­BC: Minuend word ­BCL: First minuend word ­BC: Subtrahend word ­BCL: First subtrahend word ­BC: Result word ­BCL: First result word Description ­BC Mi WORD ­BCL DWORD ­BC 1 ­BCL 2 Size Su WORD DWORD 1 2 R WORD DWORD 1 2 Operand Specifications Word addresses Area CIO Mi, Su OK R OK OK OK OK OK OK OK OK --WR HR AR T C DM @DM *DM OK ------Indirect DM addresses Constants CF Pulse bits TR bits Flags Operation Name Error Flag Label ­BC P_ER · ON when Mi is not BCD. [. . . ] --341 302 Upward differentiation @LD ----Downward differentiation %LD ----Immediate refreshing specification !LD ----Page LOAD LOAD DATE EQUAL LOAD SIGNED EQUAL 2-7 2-91 2-88 A-4 CP1E CPU Unit Instructions Reference Manual(W483) Appendices Mnemonic LD NOT LD< LD<= Instruction FUN No. --310 315 Upward differentiation ------- Downward differentiation ------- Immediate refreshing specification !LD NOT ----- Page Mnemonic LD=F Instruction FUN No. 329 Upward differentiation --- Downward differentiation --- Immediate refreshing specification --- Page LOAD NOT LOAD LESS THAN LOAD LESS THAN OR EQUAL LOAD DATE LESS THAN OR EQUAL LOAD FLOATING LESS THAN OR EQUAL 2-7 2-88 2-88 LOAD FLOATING EQUAL 2-241 LD=L LD=SL LOAD DOU- 301 BLE EQUAL LOAD DOU- 303 BLE SIGNED EQUAL LOAD GREATER THAN LOAD GREATER THAN OR EQUAL LOAD DATE GREATER THAN OR EQUAL LOAD FLOATING GREATER THAN OR EQUAL 320 ----- ----- ----- 2-88 Alphabetical List of Instructions by Mnemonic 2-88 LD<= DT LD<=F 344 --- --- --- 2-91 332 --- --- --- 2-241 LD> --- --- --- 2-88 LD>= ------2-88 325 --- --- --- 2-88 LD<=L LOAD DOU- 316 BLE LESS THAN OR EQUAL LOAD SIGNED LESS THAN OR EQUAL 317 LD<=S --- --- --- 2-88 LD>= DT 346 --- --- --- 2-91 LD>=F ------2-88 334 --- --- --- 2-241 LD<= SL LOAD DOU- 318 BLE SIGNED LESS THAN OR EQUAL LOAD NOT EQUAL LOAD DATE NOT EQUAL LOAD FLOATING NOT EQUAL 305 342 App LD>=L ------------2-88 2-91 LD>=S LD<> LD<> DT LD<>F LOAD DOU- 326 BLE GREATER THAN OR EQUAL LOAD SIGNED GREATER THAN OR EQUAL LOAD DBL SIGNED GREATER THAN OR EQUAL LOAD DATE GREATER THAN LOAD FLOATING GREATER THAN 327 --- --- --- 2-88 --- --- --- 2-88 330 --- --- --- 2-241 LD<>L LOAD DOU- 306 BLE NOT EQUAL LOAD SIGNED NOT EQUAL 307 --- --- --- 2-88 LD>= SL 328 --- --- --- 2-88 LD<>S --- --- --- 2-88 LD>DT 345 --- --- --- 2-91 LD<> SL LOAD DOU- 308 BLE SIGNED NOT EQUAL LOAD DT 343 LESS THAN LOAD 331 FLOATING LESS THAN LOAD DOU- 311 BLE LESS THAN LOAD 312 SIGNED LESS THAN LOAD DOU- 313 BLE SIGNED LESS THAN LOAD EQUAL 300 --- --- --- 2-88 LD>F 333 --- --- --- 2-241 LD>L ------------2-91 2-241 LD>S ------2-88 LD>SL ------2-88 LD<DT LD<F LOAD DOU- 321 BLE GREATER THAN LOAD SIGNED GREATER THAN 322 --- --- --- 2-88 --- --- --- 2-88 LD<L LD<S LOAD DOU- 323 BLE SIGNED GREATER THAN --- --- --- 2-88 LD<SL --- --- --- 2-88 LD= --- --- --- 2-88 CP1E CPU Unit Instructions Reference Manual(W483) A-5 Appendices M Mnemonic MILC Instruction FUN No. 519 Upward differentiation --Downward differentiation --Immediate refreshing specification --Page O Mnemonic OR ORG OR LD OR NOT OR< OR<= Instruction FUN No. [. . . ]

DISCLAIMER TO DOWNLOAD THE USER GUIDE OMRON CP1E

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 CP1E 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