Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 18 of 35

Series One Programmable Controllers, Series One/One Plus User's Manual: Chapter 5 Programming, pages 161 to 164

Pages 161 to 164 of 300, from Series One Programmable Controllers, Series One/One Plus User's Manual

The original document is the PDF (40 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the GE Fanuc IC610CPU105A, GE Fanuc IC610CPU105C, Fanuc IC610CPU105A, GE IC610CPU105A, Fanuc IC610CPU105C and GE IC610CPU105C

Page 161

-_ ‘_

Programming

5-69

GE&90842

BIN (BCD to Binary) (F85) The BCD value stored in the accumulator is converted to a binary code corresponding to that value. a40889 l

Binary conversion sequence

. L

5 oploll

4

2

OlllOlO

O[O)ljO 00 s BIN olo]oplol l l~ofl]o~o~l~o~l~1pp

3 OlOllll

1 ,

4BCD NUMBERS STORED IN ACCUMULATOR ARE CONVERTED TO A BINARY CODE

Progr amming example, BIN

Data is stored in the accumulator fkom Inputs 0040 - 0057. l Data entered finm Inputs 0060 - 0077 is subtracted from the value in the accumulator. l ‘Ihe resulting answer is stored in the accumulator, where it is canverted to a binary code. . The binary c&e is written to Outputs 0700 - 0717. l

Page 162

5-70

Programming GEK-90842

BCD (Binary to BCD) (FW) A binary code stored in the accumulator is converted to a 4 digit BCD value. If the resulting BCD value is H999, the overflow flag (777) will tum on. The flag coil can be used to turn on an output device as an indication of the overflow. a40890

BCD conversion sequence BINARY CODE STORED IN THE ACCUMULATOR

BCD ‘) 9

2

Ilojop

Progmmming

7 ollpp oloplo

1 OlOlOjl

I I

CONVERTED TO A 4 DtGIT BCD NUMBER example, BCD lx 31 DSTR 3 J +5

BCD

D-OUT 7

777

I t

130

4,

Data is stod in tbe accumulator fiom Inputs 0030 - 0047. Data hm Inputs 0050 - 0067 is ad&d to the value in the accumulator. ‘Ibe rtmking answer is stmed in the accumulator, wbexe it is umverted to a 4 digit BCD number. The BCD number is writta~ to Outputs 0070 - 0107. If an OVeIfIOWoczcuIs, the overfjiow Hag 777 will turn on output 130.

Page 163

Programming

5-71

GEK-90842

External Fault Diagnosis (F20) This instruction provides a method of monitoring external devices for unwanted conditions such as switches that should not be on at the same time. When the instruction is programmed, a 4 digit BCD number is specified as a fault indication number. If the unwanted condition occurs, the 4 digit number will be displayed on the programmer data display. The 4 digit number can be a constant value or read from a group reference. a40891

1-q r;l r;;l I-

BCD VALUE s-I l&mud

+--++p”N t u

2oxxxx-J--+ t INPUTS TO BE MONITORED

More than one FUN 20 instruction can be used in a program for detection of multiple fault conditions. Each condition to be monitored is assigned a different 4 digit number. If multiple faults occur simultaneously, the number displayed will be the one assigned by the last FUN 20 in the program. Data Registers 574 and 575 will contain the fault indicator number. When a fault number is displayed on the programmer, the fault number can be cleared from the display by depressing the CLR key. However, it is recommended that the actual fault be fixed before clearing the display. Programming example, FUN 20

D=OUT 6 a40892

IF I2 I SW I 2 0STR I NOT ElF 0 5 IO

~~~~coMectedtoI1andI3aFemadeatthesametime,FUN20willbeactive,ll11wilIbedisplayedonthe&~ display on the programmer. IfdevicesconnectedtOI2andI4aremadeattbesametimethedatartisplavwilldisplay2222. The indicator nUmberWilIbe stored in 574 and 575 and that number will be written to Outputs 0060-0077. Fault indicator number display l

The physical fault should be cleanxl. Tbtn clear the programmerdisplay with the CIX key.

Page 164

This page is a scan with no text; see it in the PDF.