Omron CPM1A operation manual Entering or Editing Programs

Page 96

Programming Console Operations

Section 4-3

 

 

 

4-3-6 Entering or Editing Programs

This operation is used enter or edit programs. It is possible in PROGRAM mode only.

RUN

MONITOR

PROGRAM

 

 

 

No

No

OK

The same procedure is used to either input a program for the first time or to change a program that already exists. In either case, the current contents of Program Memory is overwritten.

The program shown in the following diagram will be entered to demonstrate this operation.

00002

TIM 000

 

#0123

12.3 s

MOV(021)

#0100

LR 10

ADB(050)

#0100

#FFF6

DM 0000

Address

Instruction

Operands

 

 

 

 

00200

LD

IR

00002

00201

TIM

 

000

 

 

 

#0123

00202

MOV(021)

 

 

 

 

 

#0100

 

 

LR

10

00203

ADB(050)

 

 

 

 

 

#0100

 

 

 

#FFF6

 

 

 

DM 0000

1, 2, 3... 1. Press the CLR Key to bring up the initial display.

2.Specify the address where the program will begin.

3.Input the address where the program will begin and press the Down Arrow Key. It is not necessary to input leading zeroes.

C

A

A

00200READ

2

0

0

NOP (000)

4. Input the first instruction and operand.

LD

C

00200

 

2 LD

 

 

 

00002

5.Press the WRITE Key to write the instruction to Program Memory. The next program address will be displayed.

WRITE

00201READ NOP (000)

If a mistake was made inputting the instruction, press the Up Arrow Key to return to the previous program address and input the instruction again. The mistaken instruction will be overwritten

To specify the Completion Flag for a timer or counter, press the LD, AND, OR, or NOT Key followed by the TIM or CNT Key, and then input the timer/ counter number last.

6.Input the second instruction and operand. (In this case it isn’t necessary to enter the timer number, because it’s 000.) Press the WRITE Key to write the instruction to Program Memory.

TIM Timer number WRITE

00201 TIM DATA #0000

84

Image 96
Contents CPM1A CPM1A Programmable Controllers Omron Product References  OmronTable of Contents Appendices About this Manual Precautions General Precautions Safety PrecautionsIntended Audience Operating Environment Precautions Application PrecautionsXiv Application Precautions Backup method Data EC Directives Applicable DirectivesConcepts Conformance to EC DirectivesXviii Section CPM1A Features and Functions 1 CPM1A FeaturesSection Using the PT NT Link Communications CompoBus/S I/O Link UnitsStandard Peripheral Devices Programming is Possible2 I/O Terminal and IR Bit Allocation CPU UnitsExpansion I/O Units Unit Relay output Transistor output Sink type Source typeControl Corresponding IR word Setting range BCD 3 CPM1A FunctionsSet value Word Word 001 or later PC model Input bits Response time Mode Function PC model Input bits Min. input pulse widthPulse output single-phase output Temperature Sensor Unit Functions CompoBus/S Slave Functions CPM1A-SRT21System Configuration CPU Unit and Expansion I/O Unit ConfigurationCPU Unit and Expansion Unit CPM1A CPU UnitsExpansion I/O Units Unit Max. number Inputs Outputs Model UnitsHost Link Communications Expansion UnitsConnecting to a Programmable TerminalOne-to-one PC Link Communications Adapters and CablesName Usage Model number Name Specifications One-to-one NT Link CommunicationsCompoBus/S I/O Link Connections Peripheral Device ConnectionsSysmac Support Software SYSMAC-CPT Support Name Model numberRevised Specifications Previous specifications New specifications Relevant pagesUnit Specifications and Components Specifications General SpecificationsCPM1A-10CDR-j CPM1A-20CDR-j CPM1A-30CDR-j CPM1A-40CDR-j Characteristics Memory Backup 3 I/O Specifications CPU Unit Input SpecificationsIncrement Mode 5 kHz Max SpecificationExpansion I/O Unit Input Specifications CPU Unit and Expansion I/O Unit Output Specifications Relay OutputTransistor Output Sink Type Transistor Output Source Type20EDT 8ET 10CDT1-D 20CDT1-D 30CDT1-D 40CDT1-D 20EDT1 8ET1Communications Adapter Specifications RS-232C Adapter SpecificationsRS-422 Adapter Specifications Unit Components CPU Unit ComponentsCPM1A-10CDR-j/10CDT-D/10CDT1-D 10 I/O Terminals CPM1A-40CDR-j/40CDT-D/40CDT1-D 40 I/O TerminalsIndicator Status Meaning Fatal error Input indicatorsCPU Unit Component Descriptions Expansion I/O Unit Components Expansion I/O Unit with 20 I/O TerminalsExpansion I/O Unit with 8 Input Terminals Expansion I/O Unit with 8 Output TerminalsTemperature Sensor Unit Components Analog I/O Unit ComponentsCPM1A-TS001/002 CPM1A-TS101/102Set value Thermocouple Range C Range F Set value Platinum resistance Range C Range FPins Function CompoBus/S I/O Link Unit ComponentsCommunications Adapter Components RS-232C AdapterRS-422 Adapter Installation and Wiring Design Precautions Power Supply WiringPower Supply Voltage 4 CPM1A Power InterruptionsSelecting an Installation Site Installation Site ConditionsMomentary Power Failure Detection Automatic RestartPanel/Cabinet Installation OverheatingInstalling the CPM1A 2 CPM1A Installation1 CPM1A Orientation CorrectDIN Track Installation Connecting an Expansion I/O Unit InstallationRemoval Section Wiring and Connections General Precautions for WiringLine Noise Hanging DuctsGround Wiring Floor DuctsConduits GroundingCrimp Connectors To 240-VAC Power SupplyVDC Power Supply Input Wiring Input ConfigurationCPM1A-8ED Input Wiring Example OutputsDevice Circuit diagram Input DevicesInductive Loads Output Wiring Relay Output WiringOutput Configurations CPM1A-8ER Transistor Output Wiring Sink Type CPM1A-8ET Transistor Output Wiring Source Type CPM1A-40CDT1-DPolarity of Power Supply for the Load Output Short ProtectionInrush Current Considerations Fuse InsertionPeripheral Device Connection Host Link ConnectionsOne-to-one Host Link Connection One-to-N Host Link Connection RDB SDB RDA SDA One-to-one PC Link Connections One-to-one NT Link Connections C200HX/HG/HE PC Using Peripheral Devices SSS System Setup 2 CPM1A Restrictions and PrecautionsSupport Software Capabilities Offline Operations Online EditingGroup Name Description Go To CopyFill PrintFile Time Chart PC SetupGroup Name Description Utility Data Area Lists ChangeOnline Operations Offline and Online Operations Using a Programming Console Compatible Programming ConsolesCQM1-PRO01-E C200H-PRO27-EMode Switch Buzzer VolumeDifferent Keys Contrast ControlChanging the CPM1A’s Mode with the Mode Switch Program ModeMonitor Mode RUN ModeConnecting the Programming Console Panel InstallationEntering the Password Preparation for OperationProgram Password Program BZ Programming Console Operations Overview Clearing Memory All Clear Partial Clear Reading/Clearing Error Messages Buzzer OperationKey Sequence OFF Entering or Editing Programs Writing Hexadecimal, BCD Constant Writing a Word AddressWriting an Unsigned Decimal Number #FFF6Writing a Word Address DM Instruction Search Bit Operand SearchInserting and Deleting Instructions Insertion00207INSERT END Not DeletionChecking the Program Delete END00178CIRCUIT ERR Corrected Program11 Bit, Digit, Word Monitor Bit MonitorCont Word MonitorMultiple Address Monitoring Channel LRCLR Channel LR Differentiation Monitor Binary Monitor@OFF OFF OFF CLR OFF OFF OFFThree-word Monitor Signed Decimal Monitor Unsigned Decimal MonitorChanging Timer, Counter SV Three-word Data Modification3CH CHG? Hexadecimal, BCD Data Modification Inputting a New SV ConstantIncrementing and Decrementing a Constant Binary Data Modification Pres VAL?Montr Signed Decimal Data Modification D0000 MontrForce Set, Reset Unsigned Decimal Data ModificationClear Force Set/Reset Hex-ASCII Display ChangeOn on 00000FORCE RELE?Program Password Programming ExampleDisplaying the Cycle Time Preparatory Operations00000MEMORY CLR? HR CNT DM Montr END HR CNT DM Programming Procedures Example ProgramProgramming Procedures Inputting the One-second TimerInputting the Self-holding Bit Write NOPInputting the Two-second Timer Inputting the 10-count CounterLD not Inputting the Flicker OutputInputting the END001 Instruction Test Run in Monitor Mode Monitor BZTest Runs and Error Processing Initial System Checks and Test Run Procedure 2 CPM1A Test Run ProcedureInitial System Checks Points to checkFlash Memory Precautions Error CPM1A CycleNon-fatal Errors Fatal ErrorsSelf-diagnosis Functions Message FAL No Meaning and appropriate responseIdentifying Errors User-defined ErrorsError Messages Error FlagsProgramming Console Operation Errors Programming ErrorsFALS07 Message MSG46Type Message Meaning and appropriate response Circuit ERRTroubleshooting Flowcharts Main CheckPower Supply Check Fatal Error Check Follow the Memory ErrorNon-fatal Error Check 121 122 Environmental Conditions Check Memory Error Check Maintenance Inspections Power supply Allowable voltage fluctuation rangeInspection Items Inspection items Details Criteria RemarksHandling Precautions Necessary Tools for InspectionStandard Tools Measurement DevicesExpansion Memory Unit Precautions OverviewMemory Areas ButtonSpecifications and Nomenclature SpecificationsNomenclature LED Indicator HandlingMounting/Removing Eeprom Mounting EepromPeripheral Port Communications Settings PC ConnectionsCPM1, CPM1A, CPM2A CQM1, and SRM1 PCsDisconnecting Uploading ProgramsOperation Procedure Downloading Programs134 135 Standard Models Expansion UnitsCPU Units Expansion I/O UnitsTemperature Sensor Units Description Specifications Model numberCompoBus/S I/O Link Unit Communications AdaptersName Appearance Model Number Specifications Peripheral DevicesDimensions CPM1A-10CDR-j/10CDT-D/10CDT1-D CPU UnitCPM1A-20CDR-j/20CDT-D/20CDT1-D CPU Unit CPM1A-30CDR-j/30CDT-D/30CDT1-D CPU UnitCPM1A-40CDR-j/40CDT-D/40CDT1-D CPU Unit CPM1A-20EDjExpansion I/O UnitCPM1A-8jjjExpansion I/O Unit CPM1A-TSjjjTemperature Sensor Unit CPM1A-MAD01 Analog I/O UnitCPM1A-SRT21 CompoBus/S I/O Link Unit CPM1-CIF01 RS-232C Adapter CPM1-CIF11 RS-422 AdapterDimensions with Peripheral Devices Attached Appendix BACP AsciiAUTOEXEC.BAT BCDBit designator Bit numberBit-control instruction BlockCONFIG.SYS CTSDefault DIP switchData link Data link areaEeprom EpromFCS Delay Initialization errorInput signal InstallJIS LEDLSS Not OFFPCB Prom RAMRAS ROM SCPSSS Syntax error System configurationSystem error System error messageWDT Numbers Index 165 166 167 Revision code Date Revised content Revision History
Related manuals
Manual 6 pages 62.26 Kb