Download Programmable Controller PROGRAMMING MANUAL
Transcript
Section 7-21 BCD Calculation Instructions 7-21 BCD Calculation Instructions 7-21-1 SET CARRY – STC(40) Ladder Symbols STC(40) @STC(40) When the execution condition is OFF, STC(40) is not executed. When the execution condition is ON, STC(40) turns ON CY (SR 25504). Note Refer to Appendix B Error and Arithmetic Flag Operation for a table listing the instructions that affect CY. 7-21-2 CLEAR CARRY – CLC(41) Ladder Symbols CLC(41) @CLC(41) When the execution condition is OFF, CLC(41) is not executed. When the execution condition is ON, CLC(41) turns OFF CY (SR 25504). CLEAR CARRY is used to reset (turn OFF) CY (SR 25504) to “0.” Note Refer to Appendix B Error and Arithmetic Flag Operation for a table listing the instructions that affect CY. 7-21-3 BCD ADD – ADD(30) Operand Data Areas Au: Augend word (BCD) Ladder Symbols IR, SR, AR, DM, HR, TC, LR, # ADD(30) @ADD(30) Au Au Ad Ad R R Ad: Addend word (BCD) IR, SR, AR, DM, HR, TC, LR, # R: Result word IR, SR, AR, DM, HR, LR Limitations DM 6144 to DM 6655 cannot be used for R. Description When the execution condition is OFF, ADD(30) is not executed. When the execution condition is ON, ADD(30) adds the contents of Au, Ad, and CY, and places the result in R. CY will be set if the result is greater than 9999. Au + Ad + CY Flags ER: CY R Au and/or Ad is not BCD. Indirectly addressed DM word is non-existent. (Content of *DM word is not BCD, or the DM area boundary has been exceeded.) CY: ON when there is a carry in the result. EQ: ON when the result is 0. 427
Related documents
H078-E1-03D - Lakewood Automation
SYSMAC CPM1/CPM1A/CPM2A/CPM2C/SRM1(-V2)
E5EK Digital Controller User`s Manual
lcd-19xr9da_sm11.35 MB
E5AK Digital Controller USER MANUAL
E5AK Digital Controller (Programmable Type) User`s Manual
IDSC-C1DR/C1DT-AE ID Controller User's Manual
FLAMES User Manual
Eg-SMART PRO COM I+II.indd
DIVE
CXM547 User`s Manual
UNIVERSITI TEKNOLOGI MALAYSIA