CPM2A_PROGRAMMING MANUAL (W353-E1-2) (986750), страница 96
Текст из файла (страница 96)
Bits and words that are “Not used” are also read-only.Word(s)Bit(s)FunctionSR 240toSR 24700 to 15Not used.SR 248,SR 249SR 250,SR 25100 to 15Reserved.00 to 15Not used.554Read/writePageAppendix CMemory AreasWord(s)SR 252Bit(s)0001 to 0708Not used. (system use)Not used.Peripheral Port Reset BitTurn ON to reset peripheral port. (Not valid when Programming Device isconnected.) Automatically turns OFF when reset is complete.09RS-232C Port Reset BitAutomatically turns OFF when reset is complete.PC Setup Reset BitTurn ON to initialize PC Setup (DM 6600 through DM 6655). Automaticallyturns OFF again when reset is complete. Only effective if the PC is in PROGRAM mode.Forced Status Hold BitOFF: The forced status of bits that are forced set/reset is cleared whenswitching between PROGRAM mode and MONITOR mode.ON: The status of bits that are forced set/reset are maintained when switching between PROGRAM mode and MONITOR mode.1011SR 25312I/O Hold BitOFF: IR and LR bits are reset when starting or stopping operation.ON: IR and LR bit status is maintained when starting or stopping operation.1314Not used.Error Log Reset BitTurn ON to clear error log.
Automatically turns OFF again when operation iscomplete.1500 to 07Not used.FAL Error CodeThe error code (a 2-digit number) is stored here when an error occurs. TheFAL number is stored here when FAL(06) or FALS(07) is executed. This wordis reset (to 00) by executing a FAL 00 instruction or by clearing the error froma Programming Device.0809Not used.Cycle Time Overrun FlagTurns ON when a cycle time overrun occurs.Not used.RS-232C Port Set BitTurn ON to set RS-232C port.Turn OFF when reset is complete.10 to 1112131415SR 254Function000102030405060708 to 15Always ON FlagAlways OFF FlagFirst Cycle FlagTurns ON for 1 cycle at the start of operation.1-minute clock pulse (30 seconds ON; 30 seconds OFF)0.02-second clock pulse (0.01 second ON; 0.01 second OFF)Negative (N) FlagNot used.Overflow FlagUnderflow FlagDifferential Monitor Complete FlagTurns ON when differential monitoring is complete.STEP(08) Execution FlagTurns ON for 1 cycle only at the start of process based on STEP(08).Not used.Read/writeRead/writePage24521717Read/write527Readonly355Readonly---Read/writeReadonly-------------Readonly----147356555Appendix CMemory AreasWord(s)SR 255Bit(s)000102030405060708 to 15Function0.1-second clock pulse (0.05 second ON; 0.05 second OFF)0.2-second clock pulse (0.1 second ON; 0.1 second OFF)1.0-second clock pulse (0.5 second ON; 0.5 second OFF)Instruction Execution Error (ER) FlagTurns ON when an error occurs during execution of an instruction.Carry (CY) FlagTurns ON when there is a carry in the results of an instruction execution.Greater Than (GR) FlagTurns ON when the result of a comparison operation is “greater.”Equals (EQ) FlagTurns ON when the result of a comparison operation is “equal,” or when theresult of an instruction execution is 0.Less Than (LE) FlagTurns ON when the result of a comparison operation is “less.”Not used.Read/writeReadonlyPage------------------AR AreaThese bits mainly serve as flags related to SRM1 operation.
These bits retain their status even after the SRM1power supply has been turned off or when operation begins or stops.Word(s)Bit(s)FunctionPageAR 00,AR 01AR 0200 to 15Not used.00 to 0708 to 1112 to 15Not used.Not used. (system use)Not used.AR 0300 to 15Not used.AR 04 toAR 07AR 0800 to 15Slave Status Flag---00 to 03RS-232C Error Code (1-digit number)0: Normal completion1: Parity error2: Framing error3: Overrun error---0405RS-232C Communications ErrorRS-232C Transmission Enabled FlagValid only when Host Link, no-protocol communications are used.RS-232C Reception Completed FlagValid only when no-protocol communications are used.RS-232C Reception Overflow FlagValid only when no-protocol communications are used.Programming Device Error Code0: Normal completion1: Parity error2: Frame error3: Overrun error-----060708 to 1112131415556Programming Device Error FlagProgramming Device Transmission Enabled FlagValid only when Host Link, no-protocol communications are used.Programming Device Reception Completed FlagValid only when no-protocol communications are used.Programming Device Reception Overflow FlagValid only when no-protocol communications are used.----246-------Appendix CMemory AreasWord(s)AR 09Bit(s)00 to 15FunctionPageWhen the no-protocol communications mode is being used:RS-232C Reception Counter (4 digits BCD)When the 1:N NT Link communications mode is being used (V2 only):Communicating with PT Flags (Bits 00 to 07 are flags for PTs 0 to 7.)Registering Priority with PT Flags (Bits 08 to 15 are flags for PTs 0 to 7.)-----AR 1000 to 15Programming Device Reception Counter (4 digits BCD)Valid only when no-protocol communications are used.---AR 1100 to 154 digits BCDPower supply cut frequency.---AR 1200 to 15Not used.AR 1300525Power-up PC Setup Error FlagTurns ON when there is an error in DM 6600 to DM 6614 (the part of the PC Setup areathat is read at power-up).01Start-up PC Setup Error FlagTurns ON when there is an error in DM 6615 to DM 6644 (the part of the PC Setup areathat is read at the beginning of operation).02RUN PC Setup Error FlagTurns ON when there is an error in DM 6645 to DM 6655 (the part of the PC Setup areathat is always read).03, 0405Not used.Long Cycle Time FlagTurns ON if the actual cycle time is longer than the cycle time set in DM 6619.Turns ON when the program memory (UM) area is full.Turns ON when instructions other than those in the support software area used.Memory Area Specification Error FlagTurns ON when a non-existent data area address is specified in the program.Flash Memory Error FlagTurns ON when there is an error in flash memory.Read-only DM Error FlagTurns ON when a checksum error occurs in the read-only DM (DM 6144 to DM 6599)and that area is initialized.060708091011AR 13----------52612PC Setup Error FlagTurns ON when a checksum error occurs in the PC Setup area.Program Error FlagTurns ON when a checksum error occurs in the program memory (UM) area, or whenan improper instruction is executed.13Not used.
(Cleared when power is turned on.)14Data Save Error FlagTurns ON when power is turned on if data could not be saved in the following areas:DM area (read/write-capable), HR area, CNT area, SR 252, bits 11, 12 (when PC Setup in DM6601 is set to maintain status), error log, operation mode (when PC Setup in DM 6600 is set tocontinue mode last used before power failure).---(For details regarding the holding time, refer to the SRM1 Operation Manual.)15AR 14AR 1500 to 1500 to 15If data could not be saved in the above areas:The DM (read/write-capable), error log, HR, and CNT areas, and SR 252, bits 11 and 12 will becleared.
The operation mode will go into PROGRAM mode.SRM1 CompoBus/S Communications Error Flag--Maximum Cycle Time (4 digits BCD)The longest cycle time since the beginning of operation is stored. It is cleared at thebeginning, and not at the end, of operation.495The units can be any of the following, depending on the setting of in DM 6618.Default: 0.1 ms; “10 ms” setting: 0.1 ms; “100 ms” setting: 1 ms; “1 s” setting: 10 msCurrent Cycle Time (4 digits BCD)The most recent cycle time during operation is stored. The Current Cycle Time is notcleared when operation stops.The units can be any of the following, depending on the setting of in DM 6618.Default: 0.1 ms; “10 ms” setting: 0.1 ms; “100 ms” setting: 1 ms; “1 s” setting: 10 ms557Appendix DI/O Assignment SheetName of systemPC modelIR_____Unit No.:Model:IR_____0000010102020303040405050606070708080909101011111212131314141515IR_____Produced byVerified byUnit No.:Model:Unit No.:Model:Authorized bySheet No.Unit No.:Model:IR_____0000010102020303040405050606070708080909101011111212131314141515559Appendix EProgram Coding SheetName of systemProduced byPCVerified byAuthorized byChart No.AddressInstruction00010203040506070809101112131415161718192021222324252627282930313233FunctioncodeOperands561Appendix EProgram Coding SheetAddress562Instruction343536373839404142434445464748495051525354555657585960616263646566676869707172FunctioncodeOperandsAppendix EProgram Coding SheetAddressInstruction737475767778798081828384858687888990919293949596979899FunctioncodeOperands563Appendix FList of FAL NumbersName of systemPC modelFALNo.00Produced byVerified byAuthorized byChart No.FAL contentsCorrective measureFALNo.350136023703380439054006410742084309441045114612471348144915501651175218531954205521562257235824592560266127622863296430653166326733683469FAL contentsCorrective measure565Appendix FList of FAL NumbersFALNo.70FAL contentsCorrective measureFALNo.8571867287738874897590769177927893799480958196829683978499566FAL contentsCorrective measureAppendix GExtended ASCIIThe following codes are used to output characters to the Programming Console or Data Access Console usingMSG(46).