CPM2A_PROGRAMMING MANUAL (W353-E1-2) (986750), страница 33
Текст из файла (страница 33)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2544-5-2 LR AREA READ – RL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2554-5-3 HR AREA READ – RH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . .2554-5-4 PV READ – RC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2564-5-5 TC STATUS READ – RG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2564-5-6 DM AREA READ – RD . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2574-5-7 AR AREA READ – RJ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2574-5-8 IR/SR AREA WRITE – WR . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2584-5-9 LR AREA WRITE – WL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2594-5-10 HR AREA WRITE – WH . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .2594-5-11 PV WRITE – WC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2604-5-12 TC STATUS WRITE – WG . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .2604-5-13 DM AREA WRITE – WD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2614-5-14 AR AREA WRITE – WJ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2624-5-15 SV READ 1 – R# .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2624-5-16 SV READ 2 – R$ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2634-5-17 SV CHANGE 1 – W# . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2644-5-18 SV CHANGE 2 – W$ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2654-5-19 STATUS READ – MS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . .2664-5-20 STATUS WRITE – SC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2674-5-21 ERROR READ – MF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2684-5-22 FORCED SET – KS . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2694-5-23 FORCED RESET – KR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2704-5-24 MULTIPLE FORCED SET/RESET – FK . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . .2714-5-25 FORCED SET/RESET CANCEL – KC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2724-5-26 PC MODEL READ – MM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2734-5-27 TEST – TS . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2734-5-28 PROGRAM READ – RP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2744-5-29 PROGRAM WRITE – WP . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .2744-5-30 COMPOUND COMMAND – QQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2754-5-31 ABORT – XZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . .2774-5-32 INITIALIZE – :: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2774-5-33 TXD RESPONSE – EX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . .2774-5-34 Undefined Command – IC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .278203SectionIntroduction4-14-1Introduction4-1-1 OverviewCPM1/CPM1ACommunicationsThe CPM1/CPM1A can execute a variety of communications through its peripheral port via an RS-232C Adapter or an RS-422 Adapter.Host Link CommunicationsThe CPM1/CPM1A PCs are compatible with the Host Link System, which allowsup to 32 PCs to be controlled from a host computer.
An RS-232C Adapter is usedfor 1:1 communications and an RS-422 Adapter and B500-AL004 Link Adapterare used for 1:N communications.A CPM1/CPM1A equipped with an RS-232C Adapter can also communicatewith a OMRON Programmable Terminal using host link commands.Refer to 4-2-1 CPM1/CPM1A Host Link Communications in this manual and1-2-2 Host Link Communications in the CPM1 Operation Manual or 1-2-2 HostLink Communications in the CPM1A Operation Manual for more details.One-to-one PC LinkA data link can be created with a data area in another CPM1, CPM1A, CPM2A,CPM2C, CQM1, C200HX/HG/HE, or C200HS PC. An RS-232C Adapter is usedto make the 1:1 connection.Refer to 4-2-3 CPM1/CPM1A 1:1 PC Link Communications in this manual and1-2-3 One-to-one PC Communications Links in the CPM1 Operation Manual or1-2-3 One-to-one PC Communications Links in the CPM1A Operation Manualfor more details.One-to-one NT LinkUsing the 1:1 NT Link, the CPM1/CPM1A PC can connected to the OMRONProgrammable Terminal (NT Link Interface) through an RS-232C Adapter.Refer to 4-2-2 CPM1/CPM1A 1:1 NT Link Communications in this manual and1-2-4 One-to-one NT Link Communications in the CPM1 Operation Manual orNT Link Communications in the CPM1A Operation Manual for more details.CPM2A/CPM2CCommunicationsThe following types of communications can be executed through the ports of theCPM2A/CPM2C.• Host Link communications with a host computer• RS-232C communications with a computer or other device• One-to-one PC Link communications with another PC• One-to-one NT Link communications with OMRON Programmable TerminalsThis section explains the required PC Setup and methods for using these typesof communications.SRM1(-V2) CommunicationsThe following types of communications can be executed through the ports of theSRM1(-V2).• Host Link communications with a host computer• RS-232C communications with a computer or other device• One-to-one PC Link communications with another PC• One-to-one NT Link communications with OMRON Programmable TerminalsNote One-to-one NT Link communications are not possible with the SRM1-C01,which is equipped with only a peripheral port.
The SRM1-C01 may be connectedto a PT through an RS-232C Adapter in Host Link mode.4-1-2 Wiring PortsRefer to the CPM1 Operation Manual, CPM1A Operation Manual, CPM2A Operation Manual, CPM2C Operation Manual, or SRM1 Master Control Units Operation Manual for information on wiring the communications ports.204SectionCPM1/CPM1A Communications Functions4-24-2CPM1/CPM1A Communications Functions4-2-1 Host Link CommunicationsHost Link communications were developed by OMRON for the purpose of connecting PCs and one or more host computers by RS-232C cable, and controllingPC communications from the host computer. Normally the host computer issuesa command to a PC, and the PC automatically sends back a response. Thus thecommunications are carried out without the PCs being actively involved.
ThePCs also have the ability to initiate data transmissions when direct involvementis necessary.In general, there are two means for implementing Host Link communications.One is based on C-mode commands, and the other on FINS (CV-mode) commands. The CPM1/CPM1A supports C-mode commands only. For details onHost Link communications, refer to 4-5 Host Link Commands.PC Setup SettingsWordBitDM 6650 00 to 07The CPM1/CPM1A’s peripheral port settings must be set properly in order to usethe Host Link communications, as shown in the following table.FunctionSettingPort settings100: Standard (1 start bit, 7-bit data, 2 stop bits, even parity, 9,600 bps)01: Settings in DM 66510008 to 11Link area for 1:1 PC Link via peripheral port0: LR 00 to LR 150(Any value is OK)12 to 15Communications mode10: Host Link; 2: 1:1 PC Link Slave; 3: 1:1 PC Link Master; 4: 1:1 NT LinkBaud rate100: 1.2K, 01: 2.4K, 02: 4.8K, 03: 9.6K, 04: 19.2K0Frame format1StartLength00:1 bit7 bits01:1 bit7 bits02:1 bit7 bits03:1 bit7 bits04:1 bit7 bits05:1 bit7 bits06:1 bit8 bits07:1 bit8 bits08:1 bit8 bits09:1 bit8 bits10:1 bit8 bits11:1 bit8 bitsTransmission delay (Host Link)10000 to 9999: In ms.Node number (Host Link)100 to 31 (BCD)Not used.00(Any value is OK)DM 6651 00 to 0708 to 15DM 6652 00 to 15DM 6653 00 to 0708 to 15NoteStop1 bit1 bit1 bit2 bit2 bit2 bit1 bit1 bit1 bit2 bit2 bit2 bitParityEvenOddNoneEvenOddNoneEvenOddNoneEvenOddNone00(Any value is OK)000000 to 3100(Any value is OK)1.