CPM2A_PROGRAMMING MANUAL (W353-E1-2) (986750), страница 6
Текст из файла (страница 6)
(00: 256 bytes; 01 to FF: 1 to 255 bytes)When bits 12 to 15 of DM 6648 set to 1:Sets the end code. (00 to FF)10204204SectionPC SetupWord(s)Bit(s)Function1-1PagePeripheral Port Communications SettingsThe following settings are effective after transfer to the PC.If the CPM2A CPU Unit’s Communications Switch is ON, communications through the peripheral port are governed bythe default settings (all 0) regardless of the settings in DM 6650 through DM 6654.The CPM2A’s Communications Switch setting has no effect on communications with a Programming Console connectedto the peripheral port or Support Software set for peripheral bus communications.
The CPM2A CPU Unit will auto-detecteither Programming Device and automatically establish communications.Pin 1 of the CPM2C CPU Unit’s DIP switch must be OFF and pin 2 must be ON in order for communications through theCPM2C’s peripheral port to be governed by the settings in DM 6650 through DM 6654.If pin 2 is OFF, communications through the CPM2C’s peripheral port are governed by the Programming Console protocol.
If pins 1 and 2 of the CPM2C CPU Unit’s DIP switch are ON, communications are governed by the standard HostLink settings (1 start bit, 7 data bits; even parity, 2 stop bits, 9,600 bps).DM 665000 to 03Port settings20400: Standard (1 start bit, 7 data bits, even parity, 2 stop bits, 9,600 bps), Host Link unitnumber: 001: Settings in DM 665104 to 1112 to 15DM 665100 to 0708 to 15(Any other setting specifies standard settings, causes a non-fatal error, and turns ONAR 1302.)Not used.Communications mode0: Host Link or peripheral bus; 1: No-protocol(Any other setting specifies Host Link, causes a non-fatal error, and turns ONAR 1302.)Baud rate00: 1,200 bps; 01: 2,400 bps; 02: 4,800 bps; 03: 9,600 bps; 04: 19,200 bpsFrame formatStart bitsData bitsStop bitsParity00:1 bit7 bits1 bitEven01:1 bit7 bits1 bitOdd02:1 bit7 bits1 bitNone03:1 bit7 bits2 bitsEven04:1 bit7 bits2 bitsOdd05:1 bit7 bits2 bitsNone06:1 bit8 bits1 bitEven07:1 bit8 bits1 bitOdd08:1 bit8 bits1 bitNone09:1 bit8 bits2 bitsEven10:1 bit8 bits2 bitsOdd11:1 bit8 bits2 bitsNone(Any other setting specifies standard settings (1 start bit, 7 data bits; even parity, 2 stopbits, 9,600 bps), causes a non-fatal error, and turns ON AR 1302.)DM 665200 to 15Transmission delay (0000 to 9999 BCD sets a delay of 0 to 99,990 ms.)204(Any other setting specifies a delay of 0 ms, causes a non-fatal error, and turns ONAR 1302.)DM 665300 to 0708 to 1112 to 15Node number (Host Link)00 to 31 (BCD)(Any other setting specifies a node number of 00, causes a non-fatal error, and turnsON AR 1302.)Start code selection for no-protocol communications0: Disables start code; 1: Enables start code in DM 6649(Any other setting disables the start code, causes a non-fatal error, and turns ONAR 1302.)End code selection for no-protocol communications0: Disables end code; 1: Enables end code in DM 6649; 2: Sets end code of CR, LF.(Any other setting disables the end code, causes a non-fatal error, and turns ONAR 1302.)11SectionPC SetupWord(s)DM 6654Bit(s)Function00 to 07Start code (00 to FF)08 to 15(This setting is valid only when bits 8 to 11 of DM 6648 are set to 1.)When bits 12 to 15 of DM 6648 set to 0:Sets the number of bytes to receive.
(00: 256 bytes; 01 to FF: 1 to 255 bytes)1-1Page204When bits 12 to 15 of DM 6648 set to 1:Sets the end code. (00 to FF)Error Log Settings (DM 6655)The following settings are effective after transfer to the PC.DM 665500 to 03 Style0: Shift after 7 records have been stored1: Store only first 7 records (no shifting)2 to F: Do not store records04 to 07 Not used.08 to 11 Cycle time monitor enable0: Generate a non-fatal error for a cycle time that is too long.1: Do not generate a non-fatal error.12 to 15Low battery error enable0: Generate a non-fatal error for low battery voltage.1: Do not generate a non-fatal error.Low battery error detection is disabled (i.e., set to 1) by default in CPU Units that donot have a clock. If the PC Setup is cleared, the setting will changed to 0 and a lowbattery error will occur.Bits 12 to 15 should always be set to 0 when the optional CPM2C-BAT01 is mounted.1221SectionPC Setup1-11-1-4 SRM1(-V2) PC Setup SettingsThe PC Setup is broadly divided into three categories: 1) Settings related to basic PC operation and I/O processes, 2) Settings related to the cycle time, and 3)Settings related to communications.
This section will explain the settings according to these classifications.The following table shows the settings for SRM1(-V2) PCs in order. Refer to thepage number in the last column for more details on that setting.Word(s)Bit(s)FunctionPageStartup Processing (DM 6600 to DM 6614)The following settings are effective after transfer to the PC only after the PC is restarted.DM 660000 to 07 Startup mode (effective when bits 08 to 15 are set to 02).00: PROGRAM; 01: MONITOR 02: RUN08 to 15 Startup mode designation00: Programming Console switch01: Continue operating mode last used before power was turned off02: Setting in 00 to 07DM 660100 to 07 Not used.08 to 11 IOM Hold Bit (SR 25212) Status0: Reset; 1: Maintain (See caution on page 17.)12 to 15 Forced Status Hold Bit (SR 25211) Status0: Reset; 1: MaintainDM 660200 to 03 Program memory write-protection0: Program memory unprotected1: Program memory write-protected (except DM 6602 itself)04 to 0708 to 11DM 6603DM 660412 to 1500 to 03161717Programming Console display language0: English; 1: JapaneseExpansion Instructions0: Default settings; 1: User settingsNot used.Maximum number of CompoBus/S devices0: Max.
no. 321: Max. no. 1604 to 07CompoBus/S communications mode setting (V2 only)0: High-speed communications1: Long-distance communications08 to 1500 to 07Not used.00: If data could not be saved for a power interruption (AR 1314 ON), a memory error will not begenerated.01: If data could not be saved for a power interruption (AR 1314 ON), a memory error will begenerated.Not used.Not used.08 to 15DM 6605 to 00 to 15DM 6614Cycle Time Settings (DM 6615 to DM 6619)The following settings are effective after transfer to the PC the next time operation is started.DM 661500 to 15 Not used.DM 661600 to 07 Servicing time for RS-232C port (effective when bits 08 to 15 are set)00 to 99 (BCD): Percentage for cycle time used to service peripheral.08 to 15 RS-232C port servicing enable00: 5% of the cycle time01: Use time in 00 to 07.DM 661700 to 07 Servicing time for peripheral port (effective when bits 08 to 15 are set to 01)00 to 99 (BCD): Percentage of cycle time used to service peripheral.08 to 15 Peripheral port servicing setting enable00: 5% of the cycle time01: Use time in 00 to 07.181813SectionPC SetupWord(s)DM 6618Bit(s)00 to 0708 to 15FunctionCycle monitor time (effective when bits 08 to 15 are set to 01, 02, or 03)00 to 99 (BCD): Setting (see 08 to 15)Cycle monitor enable (Setting in 00 to 07 x unit; 99 s max.)00: 120 ms (setting in bits 00 to 07 disabled)01: Setting unit: 10 ms02: Setting unit: 100 ms03: Setting unit: 1 sDM 661900 to 15Cycle time0000: Variable (no minimum)0001 to 9999 (BCD): Minimum time in msDM 6620 toDM 664400 to 15Not used.1-1Page1819RS-232C Port SettingsThe following settings are effective after transfer to the PC.DM 664500 to 03Port settings0: Standard (1 start bit, 7-bit data, even parity, 2 stop bits, 9,600 bps)1: Settings in DM 664604 to 07CTS control settings0: Disable; 1: SetWhen using a 1:1 data link: Sets the link area for 1:1 PC Link.0: LR 00 to LR 15Not 0: Disable08 to 11When using a 1:N NT Link: Sets the maximum PT node number.1 to 712 to 15Communications mode0: Host Link; 1: No-protocol; 2: 1:1 PC Link Slave; 3: 1:1 PC Link Master; 4: 1:1 NTLink; 5: 1:N NT Link(Any other setting specifies Host Link mode, causes a non-fatal error, and turns ONAR 1302.)The 1:N NT Link is supported by SRM1-C02-V2 only.DM 664600 to 0708 to 15DM 664700 to 15DM 664800 to 0708 to 1112 to 1514Baud rate00: 1.2K, 01: 2.4K, 02: 4.8K, 03: 9.6K, 04: 19.2KFrame formatStartLengthStop00:1 bit7 bits1 bit01:1 bit7 bits1 bit02:1 bit7 bits1 bit03:1 bit7 bits2 bits04:1 bit7 bits2 bits05:1 bit7 bits2 bits06:1 bit8 bits1 bit07:1 bit8 bits1 bit08:1 bit8 bits1 bit09:1 bit8 bits2 bits10:1 bit8 bits2 bits11:1 bit8 bits2 bitsOther: 1 bit7 bits2 bitsParityEvenOddNoneEvenOddNoneEvenOddNoneEvenOddNoneEvenAR 1302 will turn ON to indicate a non-fatal system setting error if any value not between 00 and 11 is set.Transmission delay (Host Link)0000 to 9999 (BCD): Set in units of 10 ms, e.g., setting of 0001 equals 10 msNode number (Host Link, effective when bits 12 to 15 of DM 6645 are set to 0.)00 to 31 (BCD)Start code enable (RS-232C, effective when bits 12 to 15 of DM 6645 are set to 1.)0: Disable; 1: SetEnd code enable (RS-232C, effective when bits 12 to 15 of DM 6645 are set to 1.)0: Disable (number of bytes received)1: Set (specified end code)2: CR, LF242SectionPC SetupWord(s)DM 6649Bit(s)00 to 0708 to 15Function1-1Page242Start code (RS-232C)00 to FF (binary)When bits 12 to 15 of DM 6648 are set to 0:Number of bytes received00: Default setting (256 bytes)01 to FF: 1 to 255 bytesWhen bits 12 to 15 of DM 6648 are set to 1:End code (RS-232C)00 to FF (binary)Peripheral Port SettingsThe following settings are effective after transfer to the PC.DM 665000 to 03 Port settings00: Standard (1 start bit, 7-bit data, even parity, 2 stop bits, 9,600 bps)01: Settings in DM 665104 to 0708 to 1112 to 15242(Other settings will cause a non-fatal error and AR 1302 will turn ON.)Not used.Not used.Communications mode0: Host Link; 1: No-protocol(Other settings will cause a non-fatal error and AR 1302 will turn ON.)DM 665100 to 0708 to 15Baud rate00: 1.2K, 01: 2.4K, 02: 4.8K, 03: 9.6K, 04: 19.2KFrame formatStartLengthStop00:1 bit7 bits1 bit01:1 bit7 bits1 bit02:1 bit7 bits1 bit03:1 bit7 bits2 bits04:1 bit7 bits2 bits05:1 bit7 bits2 bits06:1 bit8 bits1 bit07:1 bit8 bits1 bit08:1 bit8 bits1 bit09:1 bit8 bits2 bits10:1 bit8 bits2 bits11:1 bit8 bits2 bitsOther: 1 bit7 bits2 bitsParityEvenOddNoneEvenOddNoneEvenOddNoneEvenOddNoneEvenAR 1302 will turn ON to indicate a non-fatal system setting error if any value not between 00 and 11 is set.DM 665200 to 15DM 665300 to 07Transmission delay (Host Link)0000 to 9999 (BCD): Set in units of 10 ms.242(Other settings will cause a non-fatal error and AR 1302 will turn ON.)Node number (Host Link)00 to 31 (BCD)(Other settings will cause a non-fatal error and AR 1302 will turn ON.)08 to 11Start code enable (RS-232C, effective when bits 12 to 15 of DM6650 are set to 1.)0: Disable1: Set12 to 15End code enable (RS-232C, effective when bits 12 to 15 of DM6650 are set to 1.)0: Disable (number of bytes received)1: Set (specified end code)2: CR, LF15SectionBasic PC Operation and I/O ProcessesWord(s)DM 6654Bit(s)Function00 to 07Start code (effective when bits 08 to 11 of DM6650 are set to 1.)00: 256 bytes01 to FF: 1 to 255 bytes08 to 15End code1-2Page242When bits 12 to 15 of DM6653 are set to 0:00: 256 bytes01 to FF: 1 to 255 bytesWhen bits 12 to 15 of DM6653 are set to 1:Setting: 00 to FF (binary)Error Log Settings (DM 6655)The following settings are effective after transfer to the PC.DM 665500 to 03 Style0: Shift after 7 records have been stored1: Store only first 7 records04 to 0708 to 1112 to 1521Errors will not be stored if other values are set.Not used.Cycle time monitor enable0: Detect long cycles as non-fatal errors1: Do not detect long cyclesLow battery error enable0: Generate a non-fatal error for low battery voltage.1: Do not generate a non-fatal error.Note If an out-of-range value is set, the following communications conditions will result.
In that case, reset the value so that it is within the permissible range.Communications mode:Communications format:Transmission delay:Node number:1-2Host LinkStandard settings(1 start bit, 7-bit data; even parity, 2 stop bits,9,600 bps)No00Basic PC Operation and I/O ProcessesThis section explains the PC Setup settings related to basic operation and I/Oprocesses.1-2-1 Startup ModeThe operation mode the PC will start in when power is turned on can be set asshown below.Bit 150DM6600Startup Mode Designation00: Programming Console Mode Selector (If not connected: RUN mode)01: Operating mode last used before power was turned off02: Mode set in bits 00 to 07Startup Mode (Bits 08 to 15: Valid when bits 00 to 07 are set to 02)00: PROGRAM mode01: MONITOR mode02: RUN modeDefault: Programming Console Mode Selector or RUN mode when ProgrammingConsole is not connected.Note When the “startup mode designation” is set to 00 and pin 2 of the CPM2C CPUUnit’s DIP switch is ON, the CPM2C will enter RUN mode automatically, regardless of the Programming Console’s mode switch setting.16SectionBasic PC Operation and I/O Processes1-21-2-2 Hold Bit StatusMake the settings shown below to determine whether, when the power supply isturned on, the Forced Status Hold Bit (SR 25211) and/or IOM Hold Bit(SR 25212) will retain the status that was in effect when the power was lastturned off, or whether the previous status will be cleared.Bit 1500DM66010Always 00SR 25211 setting0: Clear status1: Retain statusSR 25212 setting0: Clear status1: Retain statusDefault: Clear both.The Forced Status Hold Bit (SR 25211) determines whether or not the forcedset/reset status is retained when changing from PROGRAM mode to MONITORmode.The IOM Hold Bit (SR 25212) determines whether or not the status of IR bits andLR bits is retained when PC operation is started and stopped.! CautionNoteIn PCs with capacitor backup, do not use the I/O Hold Bit Status and Forced Status Hold Bit Status Bits (DM 6601) when the power to the PC is going to beturned off longer than the memory backup time of the internal capacitor.