Home
Type A1FXCPU Module User`s Manual (Function description)
Contents
1. X R SDB RDB En Di SDB RDB i i SDB RDB Terminal pi pi pi Poa resistor SDA RDA j i SDA RDA mn i i SDA RDA R i iV o iV Terminal resistor so se i se SLD x SLD Shielded twisted pair cables Connect both ends of the shield wire of the twisted pair cable to the ground ground conductor with class D class 3 via SLD and FG of each module SLD and FG are connected inside the module 2 PERFORMANCE MELSEC A 2 3 3 Specifications of the twisted pair cable Table 2 9 indicates the specifications of the cable that may be used in simple inter PLC link of the A1FXCPU Table 2 9 Twisted Pair Cable Specifications Pte O Specifications Cable type Shielded twisted pair cable Number of pairs Conductor resistance 20 C 88 0Q km or less Capacitance 1kHz Average 60nF km or less Characteristic impedance 110 100 100kHz REMARKS The manufacturers and types of the recommended shielded twisted pair cables are as follows Manufacturer Type Remarks Mitsubishi Cable Industries SPEV OB UAE 0 2mm 2 paiteable SPEV SB 0 5 2P 0 5mm 2 pair cable Ii KMPEV SB CWS 178 0 25Qx2P 0 2mm 2 pair cable Showa Electric Wire amp Cable 2 KMPEV SB CWS 178 0 5SQx2P 0 5mm 2 pair cable DPEV SB 0 3x3P 0 3mm 2 pair cable Sumitomo Electric Industries 3 DPEV SB 0 5x3P 0 5mm 2 pair cable x D KPEV SB 0 2x3P 0 2mm 2
2. Analog torque limit command 10V max current y o X AfO w Within 2m REMARKS 4 Limit switch for servo stop 2 For connection details refer to the Specifications and Installation Guide of the MR J servo amplifier 3 Indicates a distance between A1FXCPU and amplifier 5 FUNCTIONS 4 Example of connection with the MR CLIA MELSEC A Configure up a sequence to turn off MC po Jis external option Here at alarm or emergency stop yi SEL Series motor FO NF MC 22L A nie i i Power supply Ss S ta L1 TEI U U 1 single phase 200VAC A type i i v i V X sm i 1 y I or 5b 0 012 woo Wo single phase 100VAC A1 type i NaN N E 5 AR 4 Ei 1 A i MR COA or n o aes los A i Sia ol ZII i I MR COA1 Nee O22 224 i 24VDC Electromagnetic Shut off when servo on brake signal turns off or alarm i signal is given i i CN2 7 Within 2m__ 3 f 5 i A1FXCPU I lt gt i 2 I 8 1 di CN1 i i Y axis X axis A SD 11 i i cw B12 A12 EX i PP 9 Lio iio 4 SG B11 A11 Roe See oe I SG 5 CCW B14 A14 Li NP 7 DC24 B15 A15 OPC 19 y V24 20 Servo on Forward rotation stroke end 1 SON 17 i e Q LSP 15 Reverse rotation stroke end 1 1 Failure Rar ESN 14 24V 0
3. REMARKS 4 Limit switch for servo stop 2 For connection details refer to the Specifications and Installation Guide of the MR J2 servo amplifier 3 Indicates a distance between A1FXCPU and amplifier 5 24 5 FUNCTIONS MELSEC A 3 Example of connection with the MR JLIA L z _ 71 Regenerative brake option ae Configure up a sequence to turn off MC Hy este al at alarm or emergency stop N a P 2 ASNO motor 3 NF Me ne i Power supply a B MESS u y O o S V V SM i 3 phase 200VAC i Paes 9 T Ww w NY j L E T I f i I i 1 i i i i i 1 i i i 1 CORI CN2 f i Within 2m 3 i de Le gt CN1 2 8 SG 13 i 3 SG 16 i i rn SON 28 Crome RESH eS N tie Foward radi m_ 3 i aa ne 1 Forward rotation stroke end 1 Reverse rotation stroke end ESP 30 a o LSN 31 VIN 34 M1FXCPU Col a Y axis X axis CN1 CW B12 A12 E ar PP 20 COM B11 A11 ee Sa Se eae et SG 13 CCW B14 A14 CE x NP 22 DC24 B15 A15 VDD 36 cc QDC 23 VDD 35 CN1 VDD 36 ZSP 26 ALM 27 SG 16 Zero speed detection Failure CN1 P15R TLA 5 LG Monitor max 1mA meter Sm Sa MO deflected one way LG U SD
4. be read Device number of A1FXCPU which stores data to be read Number of data to be read Functions Reads n3 word data at the addresses beginning with the one specified at n2 in the buffer memory of the special module special block specified at n1 and writes that data into the devices number starting from the one specified at Special module special block buffer memory A1FXCPU Device number specified at D deli El 7 COMMUNICATION WITH SPECIAL MODULE SPECIAL BLOCK Execution Conditions Operation Error MELSEC A Reads 2 x n3 word data from the address beginning with the one specified at n2 in the buffer memory of the special module special block specified at n1 and writes that data into the devices number starting from the one specified at Special module special block buffer memory A1FXCPU Device number specified at D n2 a i 2xn3 words 2xn3 points The FROM and DFRO instructions are executed every scan while the read command is ON The FROMP and DFROP instructions are executed only once on the leading edge OFF gt ON of the read command ON Write command OFF Executed every scan Executed every scan Executed only once Executed only once Any of the following conditions will result in an operation error and the error flag switch on e The special module special block cannot be accessed e The value specified at n1 is other than 0 to 7 e n3 point dat
5. OFF M21840 M9190 Error code is retained D9192 to D9198 0 X a X 0 Reset by M9192 Error clear e When any of M9184 to M9190 has turned on the error definition can be checked with the error code stored in any of D9192 to D9198 data transmission error No local station n 5 14 5 FUNCTIONS MELSEC A 2 Error checking special registers Table 5 5 lists the special registers designed to check for errors in simple inter PLC link Table 5 5 Special Registers for Simple Inter PLC Link Normal Abnormal Number Usability Judgment Master Local A1FXCPU FXon FX2N Normal Abnormal i station station Data transmission sequence error Other D9183 i 0 count master station than 0 Data transmission sequence error D9184 7 count local station 1 Data transmission sequence error D9185 count local station 2 Data transmission sequence error D9186 i count local station 3 Data transmission sequence error Other D9187 count local station 4 than 0 Data transmission sequence error D9188 count local station 5 Data transmission sequence error D9189 count local station 6 Data transmission sequence error D9190 count local station 7 Data transmission error number Other D9191 D211 D8183 master station than 0 Data transmission error number D9192 D212 D8184 a local station 1 Data transmission error number D9193 D213 D8185 local station 2 Data transmission e
6. Output pulses D9144 D9143 Present output pulses D9137 D9136 Number of output pulses at deceleration to stop Setting of remaining pulse count 5 FUNCTIONS 10 24 28 37 69 74 107 112 b Program example M9038 SET RST SET M22 M9143 D D9143 D9136 BST X0025 pr rs M20 M9128 M9143 X0026 PLS SET RST M21 X0024 RST HE P MOV P K MOV 1000 PK DMOV 1500000 SET X0026 M9143 Hee S M23 SET SET X0027 ee eS M25 M22 M24 M9143 X0026 PLS M26 D D9143 D9136 SET RST M9130 M9143 J gy M9131 M9143 RST CIRCUIT END 5 46 K 30000 MELSEC A M9126 H Sets positive logic M9127 H Sets CW CCW M9128 H Sets that simple positioning is used Switches off pulse outputting signal on M22 completion of pulse output M20 Accepts simple positioning start M21 Simple positioning command M22 Switches on pulse outputting signal M24 Switches off restart signal M9129 H Sets forward rotation direction M9129 H Sets reverse rotation direction D9141 Sets running frequency 30Hz D9142 Sets acceleration deceleration time 1 sec D9143 H Sets output pulse count 1500000 M9130 H Switches on pulse output start signal M23 Accepts stop command M24 Switches on restart signal i j M9131 H Switches on deceleration to stop signal M25 i Accepts restart command M26 Restart command D9143 H Sets output pulse count for restart M9130
7. 2 Interrupt pointer In polarity setting M9120 to M9125 a To be turned on when running an interrupt program on the trailing edge of the corresponding interrupt input For the polarity setting of the interrupt pointer the leading or trailing edge can be specified with a single interrupt pointer b When running an interrupt program on the leading and trailing edges enter one interrupt signal into two places For example wire as shown below when specifying interrupt pointer 10 for the leading edge and 11 for the trailing edge Interrupt input M9120 OFF leading edge M9121 ON trailing edge Also write interrupt programs as shown below in the ladder mode of the pe ripheral 5 FUNCTIONS MELSEC A 5 5 4 Interrupt processing timing When an external interrupt signal comes in the interrupt program corresponding to that interrupt signal is executed There is a time delay between entry of the interrupt signal and actual execution of the interrupt program When another interrupt program is being executed the next program waits until the end of the currently run program Delay time between external interrupt signal entry and interrupt program execution will be described below 1 Ordinary interrupt input delay a The following processing is performed between interrupt signal entry and in terrupt program execution Interrupt input external switch 10 5ms lt Interrupt detection and pre
8. AC20R4 A8PU cable A8PU A8UPU programming module A8PUJ programming module RS 232C RS 422 DOS V personal rN NPN RPA 7 converter computer L_ RS 232C RS 422 PC9801 Refer to system configuration in SW SRXV GPPA SW NX GPPA M converter SW IVD GPPA Operating Manual cul peri A7LMS DH8 DH AC300R4 25P L AC30R4 PUS A6DU B cable data access module 3 SYSTEM CONFIGURATION MELSEC A 3 2 System Configuration Instructions Observe the following instructions when using the hardware and software packages available for the A1FXCPU 3 2 1 Hardware 1 YO modules The I O modules that may be used with the A1FXCPU are the FX series extension modules extension blocks Refer to Section 3 3 for the types of the usable FX series extension modules extension blocks 2 Special modules The special modules that may be used with the A1FXCPU are the FX series special modules special blocks Refer to Section 3 3 for the types of the usable FX series special modules special blocks 3 Peripherals a Any of the following programming modules may be used with the A1FXCPU in the hand held method The following peripherals cannot be used with the A1FXCPU in the add on method Programming Module CPU Type Indication The A6DU B is a data access module b EP ROM cannot be used with the A1FXCPU E PROM built in the A1FXCPU is used to perform ROM
9. Table 5 7 Special Relays for Setting the Positioning Data Operation at ON OFF What Are Set Relevant Use of Use of X Use of Y Axis simultaneous axis start Negative Positive M9126 Pulse output logic switching aa logic PULSE X axis CES Pulse Puse cut metros method CCW SIGN Whether simple positioning M9128 Not used Used control is used or not Negative Positive M9136 Pulse output logic switching ae logic PULSE Y axis ots Pulse Puse cut metros method CCW SIGN Whether simple positioning M9138 Not used Used control is used or not O Must be set Need not be set 5 FUNCTIONS MELSEC A a Pulse output logic switching M9126 M9136 1 Turn on when the drive unit uses positive logic 2 Turn off when the drive unit uses negative logic b Pulse output method switching M9127 M9137 1 Turn on when the drive unit uses PULSE SIGN 2 Turn off when the drive unit uses CW CCW 3 Relationships between pulse output switching and pulse outputs by pulse output switching setting are shown below Pulse Output Positive Logic Negative Logic Method Forward rotation Forward rotation CW CCW High Low l LIUULUL High Low TE SN c Whether simple positioning control is used or not M9128 M9138 1 Turn on when using the outputs 4 points of the A1FXCPU for simple positioning since the pulse output logic and pulse output me
10. present value storing special register Count operation stop Count operation stop 1 1 1 i 1 1 1 i 1 i 1 1 1 z i lio pe Count value stored into the i I 1 1 1 1 i i i 1 1 I 1 1 1 1 Count operation starts when the count enable command M9154 M9174 switches on 2 Count operation stops when the counter function selection start command M9159 M9179 switches on or when a voltage to the A4 B4 terminal of the Built in function connector switches on 3 Count operation resumes when the counter function selection start command M9159 M9179 switches off or when a voltage to the A4 B4 terminal of the Built in function connector switches off 4 Count operation stops when the count enable command M9154 M9174 switches off 5 Since the count enable command M9154 M9174 is off count operation re mains stopped independently of whether the counter function selection start command M9159 M9179 is on or off or whether the voltage to the A4 B4 terminal of the Built in function connector is on or off 6 If the count enable command M9154 M9174 is switched on count operation remains stopped since the counter function selection start command M9159 M9179 is on or the voltage to the A4 B4 terminal of the Built in func tion connector is on 7 Count operation resumes when the counter function selection start command M9159 M9179 switches off or the voltage to the A4 B4 t
11. Link devices Value setto D9178___ __0o __ 4 2 b Pattern O may only be used when the FXon is used When using pattern 1 or 2 use the A1FXCPU or FX2N at all stations c Refresh range setting is required for the master station only It is not needed for local stations Local stations make data communication in the refresh range set in the master station d When the refresh range has been set the A1FXCPU uses the following devices for simple inter PLC link Both the master and local stations occupy the same range When transmitting data to the other station in simple inter PLC link write data to the devices specified for the station number of the host station Devices used in pattern 0 Devices Used Bit devices 0 points Word devices 4 points ATFXCPU A1EXCPU Station 0 WO00 to W03 DO to D3 Station 1 W10 to W13 D10 to D13 W20 to W23 D20 to D23 Station2 gt Statin 3 3 3 MN W30tow33 D30toD33 W40 to W43 W50 to W53 W60 to W63 W70 to W73 5 FUNCTIONS MELSEC A Devices used in pattern 1 Device Numbers Used Bit devices 32 points Word devices 4 points A1FXCPU FX series A1FXCPU FX series Station 0 B000 to BO1F M1000 to M1031 WO0 to W03 DO to D3 Station 1 B040 to BOSF M1064 to M1095 W10 to W13 D10 to D13 Devices used in pattern 2 Device Numbers Used 4 Retry count setting a Set to the special register D9179 the number of retries to be made when there is no res
12. ROM Ae RAM Move SW1 to the lower position Move SW1 to the upper position to set RAM operation to set ROM operation Before choosing the E PROM mode read the contents of RAM with a peripheral 4 2 2 Write protect switch setting The write protect switch is used to prevent RAM and E PROM data from being rewritten by operation performed from a peripheral Use this switch to prevent a program created from being rewritten or deleted for example When this function is used RAM is write protected in the RAM operation mode and E PROM write protected in the E PROM operation mode Before making corrections to the RAM memory contents clear write protect move the switch to the upper position Use the DIP switch SW2 to select or clear write protect SW2 is factory set in the write protect clear upper position PROTECT Move SW2 to the lower position Move SW2 to the upper position to select write protect to clear write protect 4 NAMES OF PARTS AND THEIR SETTINGS MELSEC A 4 3 Latch Clear Operation When performing latch clear using the RUN STOP switch perform operation in the following procedure This operation also clears non latched devices 1 Move the RUN STOP switch from the STOP position to the L CLR position several times to flicker the RUN LED When the RUN LED flickers latch clear is ready 2 After the RUN LED has flickered move the RUN STOP switch from the STOP positi
13. a MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 CHOME HIGASHI KU NAGOYA JAPAN When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission Specifications subject to change without notice
14. In case of the A1S63P power supply module the allowable momentary power failure period is defined as the time from when the primary side of the stabilized power supply for supplying 24VDC to the A1S63P is turned OFF until when the voltage secondary side has dropped from 24VDC to the specified value 15 6VDC or less REMARKS For the power supply specifications of the extension module refer to the A1FXCPU User s Manual Setup 2 PERFORMANCE MELSEC A 2 2 2 Number of extension points and 24VDC service power supply capacity The A1FXCPU and extension module supply 24VDC power to extension blocks Therefore the number of extension block points connected must be within the range in which the A1FXCPU and extension module can supply power Since 0 13A out of servicing power supply 24VDC is used for the built in functions the 24VDC external service power supply capacity is max 0 3A 0 43A 0 13A 0 3A 1 Power supplying range The A1FXCPU or extension module can supply 24VDC service power in the following range 24VDC supplied 24VDC supplied FX2N A1FXCPU E extension module B Extension block Special B Special block The A1FXCPU or extension module supplies 24VDC current to extension locks in the extension module connected next When the extension block is designed for input the power supply for input equipment drive requires external wiring Special blocks are supplied with 5VDC power 2 24VDC capacity calcu
15. Start the step migration monitor timer applies to D9108 Start the step migration monitor timer applies to D9109 Start the step migration monitor timer applies to D9110 Start the step migration monitor timer applies to D9111 Start the step migration monitor timer applies to D9112 Start the step migration monitor timer applies to D9113 Start the step migration monitor timer applies to D9114 OFF Reset the monitor timer ON Start the monitor timer reset Turn this ON to start measurement of the step migration monitor timer The monitor timer is reset when this is turned OFF Active sampling trace complete flag Trace start Trace complete e Turned ON when the sampling traces of all specified blocks are finished Turned OFF when the sampling trace is started Active sampling trace execution flag Trace is not execution In trace execution e Turned ON while the sampling trace is in progress and turned OFF when finished or aborted Appendix 18 APPENDICES MELSEC A Appendix Table 4 1 List of Special Relays Continued Number Description Details of contents Active step sampling OFF Trace e Enable disable of executing the sampling trace is selected trace enable disable abort ON Execution of the sampling trace is allowed M9182 ON Trace enable OFF Execution of the sampling trace is prohibited The trace is abo
16. X2 Executed on X2 Executed on M9122 Interrupt pointer 12 polarity setting leading edge trailing edge X3 Executed on X3 Executed on M9123 Interrupt pointer 13 polarity setting f leading edge trailing edge i X4 Executed on X4 Executed on M9124 Interrupt pointer 14 polarity setting leading edge trailing edge X5 Executed on X5 Executed on M9125 Interrupt pointer 15 polarity setting Di leading edge trailing edge 1 Interrupt control during execution of FROM TO instruction Set whether the interrupt program may be executed or not during execution of the FROM TO instruction a When M9119 is OFF FROM TO instruction overrides interrupt During execution of the FROM TO instruction interrupt is disabled and no in terrupt program is executed if an interrupt occurs For an interrupt occurring during execution of the FROM TO instruction the interrupt program corresponding to that interrupt is executed after completion of the FROM TO instruction execution If M9119 is off the FROM TO instruction can be used in the interrupt pro gram b When M9119 is ON Interrupt overrides FROM TO instruction If an interrupt occurs during execution of the FROM TO instruction the execu tion of the FROM TO instruction is suspended and the interrupt program cor responding to that interrupt is executed If M9119 is on the FROM TO instruction cannot be used in the interrupt pro gram 5 FUNCTIONS MELSEC A
17. Connection of terminal resistors 1 R s connected to the stations at both ends of simple inter PLC link are terminal resistors 1109 1 2W Use the terminal resistors supplied to the A1FXCPU communication adaptor and communication board see below Brown Brown Brown 4 Grounding 2 The shielded twisted pair cables used for connection in simple inter PLC link must be connected to the SLD terminals 3 The FG terminal must be connected to the earth terminal of the PLC which has been earthed to the protective earth conductor REMARKS 1 The FX2n 485 BD is the communication board designed for the FX2n series 2 The FXon 485ADF is the communication adaptor designed for the FXon series 5 6 5 FUNCTIONS MELSEC A 5 2 4 Data to be set for simple inter PLC link There are the following link parameter data for simple inter PLC link e Corresponding station number e Number of local stations e Refresh range e Number of retries e Monitor time Set the link parameters to the special registers in Table 5 3 in the sequence program Table 5 3 Special Registers Used in Link Parameter Setting FIERE Setting Initial Set Station j Range Value OM LA Corresponding 7 D9176 3 e Set the station number of the host station Oto7 FFFFH station number D9177 Number of local e Set the number of local stations to communicate stations INE aa D9178 Refresh range e Set the refresh range e Set the refresh range patt
18. FX series However when the A1FXCPU is mounted on an enclosure the vibration resistance should be as in the A1FXCPU range Table 1 1 When the A1FXCPU is mounted on the DIN rail the vibration resistance should be as in the FX series range Table 1 2 Table 1 2 General Specifications of the A1FXCPU Used with the FX Series Specifications Ambient temperature 0 to 55 C Operating 20 to 70 C Storage Relative humidity 35 to 85 RH non condensing Operating i Conforms to JIS C 0911 10 to 55Hz 0 5mm max 2G 1 in each of three axial Vibration resistance directions for 2 hours Shock resistance Conforms to JIS C 0912 10G 3 times in each of three axial directions m By noise simulator of 1 000Vp p noise voltage 1 4s noise width and 30 to 100Hz noise Noise durability f requency Dielectric withstand voltage 1 500VAC for 1 minute Across all terminals and ground Insulation resistance 5MQ or larger by 500VDC insulation resistance tester RIA Always ground the terminal to the protective ground connector no joint grounding with undi 3 power control system Operating atmosphere No corrosive and combustible gases and little conductive dirt and dust 1 0 5G when mounted to DIN rail Appendix 2 APPENDICES Appendix 2 Outline Dimension Drawings Appendix 2 1 A1FXCPU module 87 3 43 90 3 55 2 0 08 4 5 0 18 120 4 73 z Orono owooo0
19. MELSEC A Appendix 3 3 Application instructions Classification Condition Processing s1 s2 ION D2 Time s Logical product Logical add 32 bits 16 bits Logical operation instruction Exclusive logical add exclusive logical add complement Appendix 11 APPENDICES MELSEC A Classification Condition Processing S2 Sal D2 Time 4s 16 bits Right rotation Rotation instruction Left rotation Right shift Shift instruction Left shift BSFLP el ec ATA Appendix 12 APPENDICES MELSEC A Classification Condition s Processing S1 S2 D1 D2 Time 4s SER DO CO Data search Bit check Data processing instruction FIFO instruction ASCII instruction Appendix 13 APPENDICES Classification Condition S sacan cion S1 S2 16 bits Data read 32 bits Buffer memory access instruction Data write FOR NEXT 2 ror y Repetition Display Display reset LEDR instruction wor __ SLT Status latch Device SLT Other memory R instructions sr Carry flag set ose MELSEC A D Processing D1 D2 Time 4s FROM n 1 686 9 18583 3 Pont 662 5 mao 184883 ni 1264 5 DFRO mis 18503 3 1237 9 18368 3 714 7 19523 3 702 3 19518 3 ni 1371 9 DTO mis 19293 3 32 bits ni 1297 7
20. Preset value upper 8 bits D9154 D9164 Pulse input mode selection Allowed Allowed D9155 D9165 Present value lower 16 bits D9155 D9165 a lo Inhibited Allowed D9156 D9166 Present value upper 8 bits D9157 D9167 Coincidence output set value lower 16 bits Allowed Allowed D9158 D9168 Coincidence output set value upper 8 bits D9159 D9169 Counter function selection Allowed Allowed D9160 D9170 Latch count value lower 16 bits 1a Inhibited Allowed D9161 D9171 Latch count value upper 8 bits D9172 Inhibited Allowed a Preset value D9152 D9153 D9162 D9163 1 Set the preset values used for the following functions e Preset function e Ring counter function 2 The preset value may be set in the range 0 to 16777215 b Pulse input mode D9154 D9164 1 Set the pulse input system with the following data Phase Pulse Input System Data Written Mutipliedbyt 0 1 phase ma ad Multipliedby2_ 8 Multiplied by 1 2 phase Multiplied by 2 Multiplied by 4 2 The high speed counter function is not activated when the data written to the pulse input mode setting special register is other than any of the above values At this time bit 3 b3 CH 1 bit 7 b7 CH 2 of D9172 turns to 1 3 The pulse input mode setting special registers turn to 0 when the A1FXCPU is switched on or reset 5 FUNCTIONS MELSEC A Table 5 12 Pulse Input Selection and Count Timing Pulse Input Pulse Input ee Cou
21. Search time by A8CPU BUSY signal of the communication request register area No acceleration of the readout time Acceleration of the readout time Space left in the communication request register area No space left in communication request register area By turning this ON the search time by the ABUPU can be reduced In this case the scan time of the CPU is extended by 10 There are 32 areas for registering the execution standby instruction FROM TO to the MNET MII S3 and this is turned ON when there is no available space for registering Error check Instruction error flag OFF ON Execute the error check No error check No error Error occurred Set if the following error checks are executed when the END instruction is processed In order to reduce the time for processing the END instruction Fuse blown check I O module matching check Battery check Turned ON when an error related to the instruction occurs It stays ON even if it returns to normal afterwards SFC program exists or not OFF ON No SFC program SFC program exists Turned ON when the SFC program is registered and the work area for the SFC is secured Turned OFF when the SFC program is not registered or the work area for the SFC could not be secured Appendix 17 APPENDICES Number MELSEC A Appendix Table 4 1 List of Special Relays Continued Start stop of the SFC
22. When the forced stop is turned from off to on at High level in negative logic the axis stops immediately Forced stop Operation performed when Max 10ms M9132 M9142 M9135 does not turn on Running frequency Pulse output start f f poo gt Time ON Pulse output start signal OFF M9130 M9140 M9133 ON Forced stop OFF M9132 M9142 M9135 c While M9132 M9142 M9135 is on pulse output is not provided if the pulse output start signal M9130 M9140 M9133 is turned on At this time a setting error occurs and M9145 M9146 turns on Refer to Sec tion 5 3 7 e M9145 X axis e M9146 Y axis ON Pulse output start M9130 M9140 M9133 ore ON Forced stop M9132 M9142 M9135 _ OFF i Setting error M9145 M9146 OFF ON Setting error occurs since M9132 M9142 M9135 is on when M9130 M9140 M9133 turns on 5 FUNCTIONS MELSEC A 5 3 6 Confirming the positioning statuses In simple positioning the pulse output status and number of output pulses can be confirmed 1 Pulse output status a The pulse output status can be confirmed by checking whether the special relay M9143 M9144 is on or off Relevant Axis Number Name Description M9143 OFF Pulse output stop Pulse output status M9144 ON During pulse output END Step 0 END Step0 END Step 0 Sequence pe i ii ee 3 program ia ON Pulse output start command M9130 M9140 M9133 OFF
23. parameter values as indicated in Table 2 3 may be selected or the user may change the setting ranges according to the purposes of use from the peripheral device Table 2 3 Parameter Setting Range List loo lem faut value Setting Range Remarks Main sequence program ksteps 6 o mona decree mel Mw n Status latch 7 E None 0 8 to 16 Sampling trace k bytes None BO to B3FF Link relay B in units of 1 point E TO to T255 Ti T in units of 1 point AAA e Only L1000 to L2047 are CO to C255 Latch range setting Counter C latched in units of 1 point AS e None for other devices Dot n o Dat t pa a in units of 1 point AA Link register W Poe 9 in units of 1 point MO to M999 Step relay S must not 11000 to L2047 M LO to M L2047 be set If set parameter None for S error occurs Internal relay M latch relay L step relay S setting Timer settin TO to T199 100ms Total 256 points of 100ms 10ms 9 T200 to T255 10ms and retentive timers Total 256 points of counters and interrupt counters in units of 8 Interrupt counter setting points These counters are processed in numerical order I O number assignment Setting is invalid XO to XFF 1 point each for RUN and STOP Remote RUN STOP PAUSE contact ia DIRO X100 to X1FF must not tti be set SENO Setting of PAUSE contact alone sb is not allowed fee I O module verify error module verify error Operation mode at malo cere i i Opera
24. 5 4 5 Ring counter function iii 5 64 5 4 6 Count disable function iii 5 68 5 4 7 Latch counter function iii 5 69 5 4 8 Coincidence output function iii 5 70 55 External Interrupt Function eee eee eee ee eee eee eer errr CITATI eee rere rere ee eee eer ere ere rere rere terre er eee rere rere reer ere 5 73 5 5 1 Instructions for the external interrupt function eee eee eee eee ee eee eee eee eee rere tere eter reer eee ere TATO 5 73 5 5 2 Wiring for use of the external interrupt function 5 74 5 5 3 Setting for executing the external interrupt function PRTETTTETETITTITTTT TTT TE TETI TT IA TITTI A TATA TITTI A TIA TATA TI 5 75 5 5 4 Interrupt processing timing reriieorgrececceeooee 5 77 6 VO NUMBER ASSIGNMENT mmm 6 1 to 6 3 6 1 What Are I O Numbers iii 6 1 6 2 I O Number Assignment DRITTE P AD Ii Tita 6 2 7 COMMUNICATION WITH SPECIAL MODULE SPECIAL BLOCK uscii 7 1 to 7 7 7 1 Reading 1 or 2 word data from the special module special block i FROM FROMP DFRO DFROP e 7 2 7 2 Writing 1 or 2 word data to the special module special block TO TOP DTO DTOP 7 5 8 ERROR CODE LIST SITI III III III III III III III III 8 1 to 8 4 APPENDICES A ORO IO IO Appendix 1 to Appendix 26 Appendix 1 General Specifications NI O AAA AIA Appendix 1 Appendix 2 Outline Dimension Drawings E SER ORE E I AI AA RE E A RI SORA RE PE VEE NSA NRE SEA ES Appendix 3 Appendix 2 1 A1 FXCPU module a o nn Appendix 3 Appendix 3 Available Instructions and Pro
25. D9168 Setting range 0 to 16777215 When the value set is outside the setting range the high speed counter func tion is not activated At this time bit 3 b3 bit 7 b7 of D9172 turns to 1 2 When the count value reaches the coincidence output set value the counter value less signal M9149 M9169 switches off and the counter value coinci dence signal M9148 M9168 switches on When there is an interrupt program 112 113 it is executed When the ring counter function has been selected the interrupt program can not be executed 3 The coincidence signal reset signal M9151 M9171 is switched on to reset the counter value coincidence signal M9148 M9168 If the counter value coincidence signal remains on the next coincident signal cannot be issued 5 FUNCTIONS MELSEC A 4 When the counter value becomes greater than the coincidence output set value the counter value greater signal M9147 M9167 switches on 1 The interrupt program 112 113 is not executed when present value coincidence output set value from the beginning after power is switched on orthe RESET switch is turned on 112 113 is ready to be run after the present value has changed or the coincidence output set value has been changed 5 FUNCTIONS MELSEC A 5 5 External Interrupt Function 1 External interrupt function By switching XO to X5 A1 to A3 B1 to B3 terminals of the A1FXCPU s Built in function connector from OFF to O
26. Designation of reverse rotation i Designation of forward rotation ON i PA direction pulse output Rotation direction switching i direction pulse output M9129 M9139 orr CTA n ae ON Pulse output status 4 M9129 M9139 DEF lo ON cW OFF ON mn ff WIN For negative logic O b The pulse output start signal M9130 M9140 M9133 should be turned from off to on when M9143 M9144 is off Axis Relevant to Pulse Output Start ON Condition of Pulse Start Signal M9130 OFF ON M9140 OFF ON X Y axes M9133 OFF OFF simultaneous start FUNCTION S FUNCTIONS MELSEC A 2 Present output pulse count The number of pulses output after the pulse output start signal has been turned on can be confirmed by checking the special registers D9136 to D9139 Relevant Axis Number Name Description e Store the number of pulses output Present after the pulse output start signal output pulse has been turned on e The output pulse count is updated at END processing e Write by the user is inhibited count Present output pulse count END Step0 END Step 0 END Step 0 Sequence m ESN i program gt I 3 ON Pulse output start OFF IM M9130 M9140 J eee ee eee Designation of reverse rotation ON CA direction pulse output Designation of forward rotation Rotation direction setting direction pulse output M9129 M9139 LO i IATA ON Pul
27. M9133 As M9130 M9140 is off at END processing pulse output is not provided For negative logic ON CW ON CCW 5 FUNCTIONS MELSEC A c Pulse output is not provided if the pulse output start signal is turned from off to on while the stop signal is on No processing is performed when the pulse output start signal is turned from off to on during pulse output d Start time The following formulas indicate times required from when the rise of the pulse output start signal M9130 M9140 M9133 is accepted at END processing un til when pulse output is provided X Y axis start time 0 30 T1 s Simultaneous X and Y axis start time 0 46 T1 s Operation performed up to pulse output is shown below END processing Step 0 END instruction A Step 0 Sequence c program ON Pulse output start signal OFF M9130 M9140 Pulse output start Output pulse 0 3 0 46ms T1 L_ Setup time when PULSE SIGN method is selected ON Use D9150 D9151 to set Pulse output status OFF M9143 M9144 ON SIGN In PULSE OFF SIGN method 5 FUNCTIONS MELSEC A 3 Deceleration to stop M9131 M9141 M9134 a Turn on when decelerating the axis being positioned to a stop e M9131 Deceleration of the X axis to a stop e M9141 Deceleration of the Y axis to a stop e M9134 Simultaneous deceleration of the X and Y axes to a stop b There is a maximum of 10ms delay between when
28. The A series peripheral can be used to perform programming with the A series instructions 4 FX series extension modules extension blocks special modules and special blocks available The FX2n and FXon series extension modules extension blocks and special blocks can be used to configure up a compact system The FX1 and FX2 series extension modules and extension blocks can also be connected to the A1FXCPU to make up a system 5 Data link with the FX2n and FXon series The simple inter PLC link function allows bit data and word data to be communicated with the FX2n and FXon series 6 CE Mark compliant product The A1FXCPU complies with the CE Mark For full information refer to the A1FXCPU User s Manual Setup 1 INTRODUCTION MELSEC A 1 2 Functions Built in the A1FXCPU The A1FXCPU has the following built in functions 1 Simple inter PLC link function Up to eight A1FXCPU modules and FX2n and FXon series main modules can be connected by shielded twisted pair cables to communicate bit and word data Master station Local station Local station A1FXCPU A1FXCPU A1FXCPU Shielded twisted pair cable 2 Simple positioning function One servo amplifier and one stepping motor driver may be connected to the A1FXCP U to do simple positioning with max 60kpps pulses output A1FXCPU Stepping motor 3 High speed counter function Two encoders may be connected to the A1FXCPU to count max 60kpps pulses input When the
29. counter 8 points FXon 16EX 24VDC input 16 points 16 points FXon 8EYR 2A relay output 8 points 16 points Extension block FXon 8YT 0 5A transistor output 8 points 16 points Exon serias FXon 16EYR 2A relay output 16 points 16 points FXon 16YET 0 5A transistor output 16 points 16 points FXon 3A Analog I O 8 point bits input 2 channels output 1 channel 8 points Special block FXon 16NT MELSECNET MINI interface twisted pair cable 32 points RS 232C computer link interface communication enabled FX2N 2321F A 8 points in no protocol mode Extension cable 65cm for connection between A1FXCPU Extra extension cable FXon 65EC and FXon FX2n series extension module FXon 8ER 24VDC input 4 points 2A relay output 4 points 32 points FX 16NT 32 points FX 16NP S3 40 points FX 16NT S3 40 points FX IDIF 40 points FX2N 4AD TC 4 channel temperature sensor input thermocouple 8 points a z FX 4AD 8 points FX 2DA 8 points FX 2AD PT 8 points FX 4AD TC 8 points FX 1PG 8 points FX series Special block FX 1HG 8 points FX 16NP 32 points i 3 SYSTEM CONFIGURATION MELSEC A Table 3 3 System Equipment List Continued Type Description Occupied ipti i Points FX 1GM Positioning pulse output 1 axis max frequency 100kpps Special module FX 10GM Positioning pulse output 1 axis max frequency 200kpps Positionin Ise output 2 axes max frequenc FX 20GM Modo pulse output 2 aX6S A ra 200kpps FX s
30. example A1FXCPU FXon 3A x2 FX IHC x1 FX 10GM x1 300mA 30 2 mA 70mA OMA power supply built in unnecessary 170mA 0 connectable 2 PERFORMANCE MELSEC A Table 2 6 Special Block and Special Module Current Consumption List Current Type Consumption 5VDC 30mA 4 channel temperature sensor input FX2n 4AD TC 30mA thermocouple 4 channel temperature sensor input FX 4AD TC 40mA aan ee The FX2n CNV IF conversion adaptor is required for use of special modules and special blocks 2 PERFORMANCE MELSEC A 2 3 Performance of Simple Inter PLC Link This section provides the simple inter PLC link performance of the A1FXCPU 2 3 1 Simple inter PLC link performance list Table 2 7 gives the simple inter PLC link performance list of the A1FXCPU Table 2 7 Performance List tem Performance Conformance with RS 485 Communication method Half duplex communication system Synchronous method Asynchronous system Data Word data 4 or 8 words station Data communication method O O O NN o Max 200ms 2 PERFORMANCE MELSEC A 2 3 2 Interface specifications Table 2 8 gives the RS 485 interface specification list of the A1FXCPU Table 2 8 Specification List ae Signal Direction e Signal Abbreviation Description Module lt gt Module SDA RDA Send receive data SDB RDB Send receive data Signal ground Wiring method Master station Local station Local station
31. had been stored The contents of D9125 to 9132 are shifted upwards by one by executing the LEDR instruction When there are 8 items which were detected by the annunciator the 9th is not stored in D9125 to 9132 even if it is detected SET SET SET SET SET SET SET SET SET SET SET F50 F25 F99 F25 F15 F70 F65 F38 F110 F151 F210 LEDR ii Vin Vin Vin Vi Vi Vi Ve AAA D9009 0 50 50 50 50 50 50 50 50 50 50 50 50 Detect number D9124 0 1 2 3 2 3 4 5 6 7 8 8 8 Number of detected items Detect number All of the contents are cleared when any of the following is executed turning off the power latch clear operation reset operation The contents are preserved when the RUN key switch is in STOP position The contents of the special registers marked by 1 in the above list cannot be cleared even after the status returns to normal Therefore use the following methods to clear the contents 1 From the user program Insert the circuit shown to the right in the program or pce aa ee sabes and turn ON the clear execution instruction contact to clear the contents of the register From the peripheral device Use the current value modification function of the test function or force reset from the peripheral device to change to 0 Refer to the manual of each peripheral device for the operation It can be changed to 0 by fli
32. is executed at the preset value of 0 ring count value of 2000 and present value of 3000 1 In up counting the present value turns to the minimum value 0 when it is counted up to the maximum value 16777215 Then when the present value is counted up from the minimum value 2000 to the ring count value it turns to the preset value 0 3000 3001 to 16777215 1999 2000 0 SUIS SIL 2 In down counting the present value turns to the preset value 0 when it is counted down to the ring counter value 2000 3000 2999 to 2001 2000 0 16777215 16777214 16777213 16777212 POINTS 1 During execution of the ring counter function the preset and ring count values cannot be written 2 During execution of the ring counter function any interrupt of the coincidence output function cannot take place 5 FUNCTIONS MELSEC A 5 4 6 Count disable function The count disable function stops the counting operation while the count enable com mand M9154 M9174 is on When the count disable function is used the relationships between the count enable command the counter function selection start command and the counter s present value are as shown below Count enable command M9154 M9174 Counter function selection start command Count disable request M9159 M9179 A4 B4 terminal Present value storing special registers D9155 D9156 D9165 D9166 1 ON 4 5 OFF 2 ON 3 y 7 OFF i
33. is SP UNIT DOWN erro executed Stop Flicker I O interrupt error e When interrupt occurs I O INT ERROR e Vhen power is switched on or Special functi dul i pecial function module CPU is reset SP UNIT LAY ERR SP UNIT ERR assignment error e When STOP PAUSE is switched LINK PARA ERROR A wo Special function e When power is switched on or Link parameter error ine MER e When STOP PAUSE is switched to RUN 40 41 44 46 47 70 module error a Special function module a e When FROM TO instruction is access error executed Default Stop Run Run to RUN e Always Battery Battery error Not checked when M9084 is on BATTERY ERROR Operation error e When corresponding instruction is wa OPERATION ERROR a Default Continuation executed 2 PERFORMANCE MELSEC A REMARKS 1 Two modes described in the CPU Status and RUN LED Status columns in Table 2 2 indicate that they can be changed by parameter setting from the peripheral 2 The messages given in Error Message of Peripheral of Table 2 2 are displayed when the peripheral is used to make PLC diagnosis 3 FUSE BREAK OFF is displayed in the peripheral device 2 PERFORMANCE MELSEC A 2 1 6 Parameter setting range list Parameters are used to assign the A1FXCPU s user memory set various functions and specify device ranges The set data is stored in the first 3k bytes of the user memory area Default initial
34. ke no sil 5 OHS 013 wo L E i E b _ EMG B17 OE da gt lo 002 O DC24V A B2 Electromagnetic Shut off when servo on brake Lota signal turns off or alarm PE signal is given i MFXCPU Le Within 2m 3 gt CN2 S 1 Y axis X axis CN1A i m cw B12 A12 PP 3 i COM B11 A11 LE Essa enti SG 10 PERSAS CCW B14 A14 4 NP 2 DC24 B15 A15 OPC 11 q COM 9 SD plate Personal computer CN3 Beet available on market 12 TxD FU LI RD 2 RxD SD 1 LG GND 11 LG TI GND 5 Le 4 RS 15 LG cs External DR spacmergency stop oN 15 ER Servo on Monitor output e o SON 5 AE Reset 5 RES 14 4 MO1 mi Ah Max 1mA meter Proportional control PC 8 3 LG TRE AE 10k deflected both ways Torque limit gt TL 14 MO2 A Forward rotation stroke end 1 LSP 16 13 LG TAS 10k Reverse rotation stroke end 1 LSN 17 Plate sD _ A S6_ 10 Within 2m SG 20 OM 13 RA1 Vv C Failure 4045 ALM 18 Zero speed detection bo 6 ZSP 19 i oe T Limiting torque Analog t limit EH P15R 11 nalog torque limi i iia 12 rity 10V max current y SD Plate Within 2m
35. makes the following I O number assignment When writing a sequence program specify the I O numbers assigned in accordance with the following items 1 YO number assignment a I O numbers are assigned to the extension module extension block connected on the right hand side of the A1FXCPU starting with X Y20 Numbers X O O LI are assigned to the inputs of extension modules extension blocks and Y O OO to their outputs b I O numbers are assigned in hexadecimal c Inputs outputs start at X Yn0 The I O numbers of each module are indicated below Number of I O Points of Extension I O Numbers Module Extension Block 8 input points Xn0 to Xn7 Xn8 to XnF must not be used 8 output points Yn0 to Yn7 Yn8 to YnF are handled as internal relays i Xn0 to Xn3 Xn4 to XnF must not be used Y n 1 0 to Y n 1 3 Y n 1 4 to Y n 1 F are handled as internal relays 3 16 input points Xn0 to XnF 4 input points 4 output points 16 output points Yn0 to YnF Xn0 to Xn7 Xn8 to XnF must not be used Y n 1 0 to Y n 1 7 Y n 1 8 to Y n 1 F are handled as internal relays E Xn0 to XnF Y n 1 0 to Y n 1 7 Xn0 to XnF X n 2 0 to X n 2 7 24 input points 24 output points Y n 1 0 to Y n 1 F Y n 3 0 to Y n 3 7 Y n 3 8 to Y n 3 F are handled as internal relays 8 input points 8 output points 1 Can be switched on off in the sequence program but cannot be provided to the outside For example I O numbers are as follows when an extension
36. module extension block is connected on the right hand side of the A1FXCPU I O numbers in parentheses are occupied by each extension module extension block 4 input points 8 input points 8 output points 4 output points 16 input points X20 to X23 X20 to X27 Y20 to Y27 X20 to X2F X20 to X2F X20 to X2F Y20 to Y2F Y30 to Y33 X20 to X2F Y30 to Y3F 8 input points 16 input points 24 input points 16 output points 8 output points 16 output points 24 output points X20 to X27 X20 to X2F X20 to X2F X20 to X2F Y20 to Y2F X20 to X2F X20 to X2F X20 to X47 X40 to X4F Y20 to Y2F Y30 to Y37 Y30 to Y3F Y30 to Y3F Y30 to Y3F Y30 to Y3F Y30 to Y3F Y50 to Y5F Y50 to Y5F 6 2 6 O NUMBER ASSIGNMENT MELSEC A d One special module special block occupies 8 points but does not use I O numbers Hence when special modules special blocks are used skip them over when setting the I O numbers Special module 16 input points special block 16 output points A1FXCPU X20 to X2F Y30 to Y3F 16 points 8 points 16 points Number of I O points used Up to a total of 224 points REMARKS The LED indication of the extension module extension block is in octal When using the A1FXCPU to control the extension module extension block read the octal of the LED indication as hexadecimal Indication of extension module extension block Value read as hexadecimal O 12 3 4 5 6 7 012 3 4 5 6 7 OOOO OOOO OOO
37. modules special blocks may be connected to the A1FXCPU 2 Power supply range Special blocks are supplied with 5VDC in the following range 5VDC supplied 5VDC supplied ES FX2N 3 z A1FXCPU B 8 extension B 21313 N module o oa o al 2 n FX2N CNV IF B Extension block Special B Special block Special U Special module The A1FXCPU or extension module supplies 5VDC power to the special blocks in the extension module connected next The special module does not include a power supply As 5VDC power is supplied through the extension cable external wiring is not necessary 3 5VDC capacity calculation The 5VDC power supply of each module is as follows Refer to the following table for the current consumption of each special block lt 5VDC power supply capacity gt Model PowerSupplyCapacity ______ Remarks A1FXCPU 300mA The 5VDC current to the CPU and the equipment connected to the programming connector has already been subtracted FX2n extension module 5VDC Special block 5VDC If the result is less than 0 the capacity is short Total capacity Current consumption a Use an extension module midwa 300mA or 690mA P id Refer to Table 2 6 Up to two FXon 3A s may be connected to the A1FXCPU or FX2n 32E or up to three FXon 3A s to the FX2n 48E If more blocks are connected use the extension module FX2N 32E FX2N 48E midway Connection
38. not used put this cover on indicator LED 1 O indicator LED Cover for protection of the terminal block Put this cover on except when making 12 Terminal block cover connections A Connector cover for connection of a peripheral 13 Peripheral connector cover E When a peripheral is not used put this cover on Cover for protection of the battery connector etc of the A1FXCPU Open the protective cover to perform the following operations e DIP switch setting 14 Protective cover e Connection to the battery connector e Battery replacement e Connection disconnection to from the extension block connector When the above operations are not performed put this cover on Connector used to perform main program write read monitoring and test using a 20 Peripheral connector D sub 25 pins p riph ral i DIN rail catch Catch for a e eE this module to a DIN rail Do not open this cover 2222222222222 Connector for connection of the FXon and FX2N series extension modules extension 23 Extension block connector blocks special modules and special blocks 4 NAMES OF PARTS AND THEIR SETTINGS MELSEC A 4 2 Settings The A1FXCP U settings include RAM E PROM operation and write protect settings 4 2 1 RAM E PROM operation setting The memory operation system includes RAM and E PROM modes Use the DIP switch SW1 to select the memory operation system SW1 is factory set in the RAM operation lower position
39. of the Power Supply Section This section provides the power supply section performance of the A1FXCPU 2 2 1 Power supply section performance list Table 2 5 gives the power supply section performance list of the A1FXCPU Table 2 5 Performance List tem Performance 100 240VAC 10 15 Input voltage 85 264VAC Input frequency 50 60Hz 3Hz Input apparent power 100VA 50A 5ms at input of 240VAC 4 5VDC 1 2A 24VDC 0 41A MAX for CPU I O 24VDC 0 43A for external service power supply 2 3 5VDC 1 5A or more 24VDC 0 65A or more total for insulation and non insulation 5 Rated output 1 Overcurrent protection Overvoltage protection 5 5 to 6 5vDC 6 Efficiency 65 or more Power indication POWER LED indication Terminal screw size Applicable wire size 0 3 to 2mm e RAV1 25 3 R1 25 3 in conformance with JIS C 2805 Applicable wire size 0 3 to 1 25mm Applicable solderless terminal e V2 MS3 Japan Solderless Terminal Mfg Co Ltd RAP2 3SL RAP2 3 5SL Japan Terminal Co Ltd Applicable wire size 1 25 to 2mm Permissible instantaneous power _ j Within 10ms 7 failure period 1 For details refer to Sections 2 2 2 and 2 2 3 2 For exerhal I power supply 0 3A rota 0 43A For built in functions 0 13A 3 24VDC can be used up to a total of 0 6A for the CPU I O and external service power supply 4 Inrush current If the power supply module is re powered ON right after powered OFF wi
40. off the external preset command detection flag thereby enabling presetting 5 FUNCTIONS MELSEC A 5 4 5 Ring counter function The ring counter function repeats counting between the preset value set by the ring counter command and the ring counter value The ring counter function can be used for control such as fixed pitch feed 1 Example of using the ring counter function In a system where a sheet is cut to the specified size set the ring counter value to roller feed a sheet in fixed pitch and cut it to the given length a Set the preset and ring counter values to execute the ring counter function b The motor is run to rotate the rollers c The motor is stopped as soon as the given length of the sheet is fed by the rollers d The sheet is cut e The operations in steps b to d are repeated Cutter Roller Sheet O QU Cutter Motor e Encoder A1FXCPU 5 FUNCTIONS MELSEC A 2 Ring counter function operation The operation of the ring counter function is shown below ON Count enable command OFF M9154 M9174 ON Ring counter setting OFF M9157 9177 ES Input pulse for counting i I nm Preset value setting special registers i 5 li Li D9152 D9153 D9162 D9163 Coincidence output setting i special registers 2 100 D9157 D9158 D9167 D9168 Counter value
41. operation Use the DIP switch of the A1FXCPU to switch between RAM operation and E PROM operation Refer to Section 4 2 3 SYSTEM CONFIGURATION MELSEC A 4 Program write in E PROM operation mode a In the E PROM operation mode write during RUN cannot be performed If write during RUN is performed the following error message appears on the peripheral Peripheral Message A6GPP PC COMMUNICATION ERROR AGPHP ERROR CODE 17 A7PHP A7HGP A7LMS CANNOT COMMUNICATE WITH PC A75LMS ERROR CODE 17 PC9801 DOS V personal computer PC NOT RESPOND Change the program in the PC mode or online mode of the peripheral 5 Restrictions on use of peripherals Buffer memory batch monitoring of the special module special block cannot be performed from the peripheral connected to the A1FXCPU If buffer memory monitoring is made the following error message appears on the peripheral Peripheral A6GPP I O ADDRESS SETTING ERROR A6PHP A7PHP A7HGP A7LMS A75LMS PC9801 WRONG l O ADDRESS SETTING DOS V personal computer On the A1FXCPU use the FROM TO instructions to read write data from to the special module special block Refer to Chapter 7 FIGURATION 3 SYSTEM CONFIGURATIO MELSEC A 6 Restrictions on use of GOT a The GOT may only be connected directly to the A1FXCPU by the RS 422 cable It cannot be connected by a bus or computer link b Buffer memory batch monitoring of the special module
42. performance list Table 2 1 gives the CPU section performance list of the A1FXCPU Table 2 1 Performance List stem Performance e ON method Repeated Bake i using stored program O control method control method Refresh Refresh system Language dedicated to sequence control Program language Relay symbol words symbolic words MELSAP II SFC Sequence instruction Number of instructions types Basic instruction 131 Application instruction 93 Processing speed sequence instruction us step Number of I O points points 224 X Y20 to 10FF Watchdog timer ms 10 to 2000 Built in RAM 64 Memory capacity k bytes ES 2 ME de Built in EPROM 32 E PROM service life for writing 100000 times Main sequence Max 14 Program capacity Sub sequence None Internal relay M points 1000 MO to 999 A total of 2048 points of M Set in parameters Latch relay L points 1048 L1000 to 2047 and L are commonly used Step relay S points iaa Must not be set Link relay B points 1024 BO to 3FF 256 100ms timer Set time 0 1 to 3276 7s TO to 199 10ms timer Set time 0 01 to 327 67s T200 to 255 Set in parameters 100ms retentive timer Set time 0 1 to 3276 7s J 256 Normal counter Setting range 1 to 32767 CO to 255 Interrupt program counter Setting range 1 to 32767 points Counter C points Set in parameters Counter used in interrupt program Data register D po
43. power failure the A1FXCPU performs the following operation processing 1 Instantaneous power failure shorter than permissible instantaneous power failure time a When an instantaneous power failure has occurred the A1FXCPU holds the output status and suspends operation processing b When an instantaneous power failure is cleared the A1FXCPU resumes operation processing At this time it adds 1 to the AC down detection storing special register D9005 c If operation is being suspended due to the occurrence of an instantaneous power failure the A1FXCPU continues the timing of the watchdog timer WDT For example when the watchdog timer setting is 200ms a watchdog timer error occurs if an instantaneous power failure of 10ms occurs at the scan time of 195ms Occurrence of Restoration of instantaneous power supply power failure END Step 0 END Step 0 id EHH operation A1FXCPU suspends operation Fig 2 1 Operation Processing at Occurrence of Instantaneous Power Failure 2 Instantaneous power failure longer than permissible instantaneous power failure time The A1FXCPU makes an initial start When making an initial start the A1FXCPU performs the same operation processing as when power is switched on or the CPU is reset by the RESET switch When the AC down detection storing special register D9005 is incremented check the power supplied to the A1FXCPU 2 PERFORMANCE 2 1 5 Self diagnosis MELSEC A
44. program Description OFF Stop the SFC program ON Start the SFC program Details of contents Turned ON by the user to start the SFC program When this is OFF the output of the executing step is turned OFF and the SFC program is stopped Startup status of the SFC program Continuous migration or not OFF Initial start ON Continue Start OFF No continuous migration ON Execute the continuous migration When the SFC program is restarted by the M9101 the startup step is selected ON Clears all execution status at the moment when the SFC program was stopped and starts up from the initial step of block 0 OFF Starts up from the execution block and execution step of the moment when the SFC program was stopped Once turned ON it is latched power failure compensation by the system When all conditions for migrating the continuous steps are met select whether all steps which meet the conditions in one scan should be executed or not ON Execute continuously Continuous migration OFF Execute one step per scan No continuous shift Continuous migration inhibit flag OFF When the migration is finished ON When the migration is not executed This is ON when the continuous migration exists but not in progress and OFF when the migration for one step is finished Add M9104 by AND logic to the migration conditions to inhibit the continuous migration of the applicable step
45. representative 1 Calculate or check user program scan time and reduce it using CJ instruction etc 2 Check for instantaneous power failure by monitoring special register D9005 with the peripheral If the value is other than 0 power supply voltage is instable Check the power supply and reduce voltage fluctuation 8 ERROR CODE LIST MELSEC A Table 8 1 Error Code List Continued Content of Special Error Message Register D9008 Error and Cause BIN Value END NOT 1 When executed the END instruction 1 Reset the CPU and run it again If EXECUTE was read as another instruction the error still persists it is a CPU code due to noise etc hardware fault Consult your 2 The END instruction has changed sales representative into another instruction code for some reason WDT ERROR The CJ instruction or like caused the Check for programs which may go sequence program to enter a loop into an endless loop and correct if making the END instruction any inexecutable UNIT VERIFY I O data different from those at 1 Monitor the special register ERR power on D9116 in blocks of 16 points 1 The connection cable of extension with the peripheral to check for module extension block special 1 in the bit corresponding to the module or special block unplugged extension module extension block special module or special block resulting in verify error Change the corresponding module or block 2 Monitor
46. ro ES a start No proc Pulse output No proc a essing start essing Y axis CER to No proc Deceleration Moma Stop o essing to stop ia stop No proc Immediate 3 Moraz 42 Stop o essing stop O Valid Invalid REMARKS 1 1 Decelerates the X Y axis to a stop or forces it to stop 2 2 Decelerates the X axis to a stop or forces it to stop 3 3 Decelerates the Y axis to a stop or forces it to stop 5 FUNCTIONS MELSEC A 1 Rotation direction switching M9129 M9139 a Turn on when positioning the axis in the reverse rotation direction Turn off when positioning the axis in the forward rotation direction Pulse Pulse Output Direction Direction Rotation Direction ae Relevant Axis Forward rotation Reverse rotation Switching direction direction m9129 Xaxis OFE ON M9139 b Since the rotation direction switching command is made valid on the leading edge OFF to ON of the pulse output start signal M9130 M9140 M9133 the rotation direction can be changed per positioning control ON Pulse output start command_ OFF Pulse output specified for M9130 M9140 M9133 Pulse output specified for ON i JO rotation direction Rotation direction switching OFF Z forward i n M9129 M9139 ON O Pulse output status OFF M9143 M9144 l ONS he ta ow or WUUUU UUUUL ON son UMANI For negative logic REMARKS 1 For details of the p
47. so can cause an electric shock Overtightening can cause a drop short circuit or misoperation due to damaged screws or module e Before starting online operation with the peripheral connected to the running CPU module especially program modification forced output operating status change carefully read the manual and fully ensure safety Not doing so can cause machine damage or accident due to operational mistakes e Use any radio communication device such as a cellular phone or a PHS phone more than 25cm 9 85 inch away from the PLC Not doing so can cause a malfunction e Do not disassemble or modify each module This can cause a failure misoperation injury or fire e Completely turn off the external power supply before loading or unloading the module Not doing so could result in electric shock or damage to the product e Do not drop or give an impact to the battery installed in the module Otherwise the battery will be broken possibly causing internal leakage of electrolyte Do not use but dispose of the battery if it has fallen or an impact is given to it e Always make sure to touch the grounded metal to discharge the electricity charged in the electricity charged in the body etc before touching the module Failure to do say cause a failure or malfunctions of the module Disposal Precautions e When disposing of this product treat it as industrial waste Transportation Precautions e When transporting lith
48. speed counter function A1FXCPU Pulse generator S Twisted shielded cable AE Ss 24VDC OV I porte External power supply A1FXCPU Shield Twisted shielded cable 5 53 Shield Count disable latch counter trigger input Counter preset input 5 FUNCTIONS MELSEC A 5 4 3 Special relays special registers for use of the high speed counter function This section explains the special relays and special registers used when the high speed counter function is used 1 Special relays The high speed counter function uses the special relays indicated in Table 5 10 Table 5 10 Special Relays for High Speed Counter Operation ON OFF Signal Name nna by User M9147 M9167 Counter value greater M9148 M9168 Counter value coincidence r Disallowed M9149 M9169 Counter value less MS M9150 M9170 External preset request detection MES M9151 M9171 Coincidence signal reset command During ON M9152 M9172 OFF gt ON M9153 M9173 During ON M9154 M9174 Count enable During ON M9155 M9175 Present value read request OFF gt 0N M9156 M9176 External preset detection reset command During ON Allowed M9157 M9177 Ring counter setting During ON M9158 M9178 Counting speed selection During ON Counter function Disable function During ON M9159 M9179 selection start command Latch counter function OFF gt 0N a
49. station power time out parameters and master station sending data to Spb upply the next local station Cable wiring Transmission Sek Master station power Master station Local station Transmission format error format error supply Station number setting Cable wiring Local station q A Local station power no response Local station Local station Local station does not exist Suppi u error PP y l Station number setting Station __ 1 Another local station responded to the send de 22H Local station Local station Cable wiring number error request of the master station ai A E __ 1 Counter value in transmission data differs from As 23H Counter error Local station Local station Cable wiring the counter value returned by the local station Cable wiring Parameter __ 2 With no parameters received a send request i Local station Local station i Master station power unreceived was received from the master station i supply Monitor time As the next data was received prior to the end 7 Receive s i Monitor time should All stations Host station of receive data processing unprocessed data buffer error I be longer than was accumulated to fill the receive buffer A1FXCPU scan time 1 Local stations other than the one where the error occurred 2 Local station where the error occurred 5 FUNCTIONS MELSEC A 5 2 7 Loopback self check The A1FXCPU can self check whether it
50. the special register D9116 in blocks of modules with the peripheral to check for 1 in the bit corresponding to the extension module extension block special module or special block resulting in verify error Change the corresponding module or block 3 When the current module may be kept connected reset the CPU with the RESET switch FUSE BREAK 1 Power of the extension module not 1 The peripheral may also be used OFF on to check whether the power of the extension module is off or not Monitor the special registers D9100 D9101 to check for 1 in the bit corresponding to the extension module special extension module resulting in power off 2 Check whether the power of the extension module special extension module is on or off CONTROL BUS FROM and or TO instruction not 1 Special module CPU module or ERR executed extension cable hardware fault 1 Special module control bus error Change the module and check the faulty module Consult your sales representative 8 ERROR CODE LIST MELSEC A Table 8 1 Error Code List Continued Content of Special Error Message Register D9008 Error and Cause BIN Value SP UNIT ERROR LINK PARA ERROR OPERATION ERROR MAIN CPU DOWN BATTERY ERROR 1 Access to where no special module exists FROM TO instruction executed 2 Extension module special block not supplied with power 1 Link setting program setting data is outs
51. tightening torque Terminal block screw M3 screw 39 to 59N cm 2 The applicable wire sizes are 0 3 to 2mm 3 SYSTEM CONFIGURATION MELSEC A 3 SYSTEM CONFIGURATION This chapter provides the system configuration usable with the A1FXCPU system configuration instructions and system equipment 3 1 Overall Configuration A1FXCPU Battery AGBAT FXon series extension module extension block To peripheral Servo amplifier FX2N series drive unit special block FXon series Servo motor extension block stepping motor FXon series special block Interrupt inputs L Conversion cable FX series extension module extension block Encoder 3 SYSTEM CONFIGURATION MELSEC A ATEHE AC30PIO pale handy 26P For usable printer ROM writer refer graphic i programme cable printer ee ae Operating A7PHP AT N PR gt handy graphic AC30R2 gt printer To A1FXCPU AC30R4 programmer cable AC300R4 C cable es A6PHP plasma handy gt graphic programmer Printer A6GPP AC30R2 ATNPR A7PR K7PR K6PR gt intelligent GPP cable gt ieri K6PR K S1 GT 1 general purpose printer Audio cassette cable J 1 I D gt Audio cassette recorder A7PU al programming module A7PUS programming module L AC30R4 PUS 7 cable L
52. to Section 5 2 6 3 e The error code is cleared when M9192 error clear is turned from OFF to ON after the corresponding station had recovered from the error and the data transmission sequence has resumed 5 FUNCTIONS MELSEC A 3 Error code list Table 5 6 lists error codes stored into the data transmission error code storing data registers of the stations which detected errors at occurrence of data transmission sequence errors Table 5 6 Error Code List Error Station Where Station Which ee Error Definition Check Items Code Error Occurred Detected Error Monitor Local station does not respond to the send Cable wiring i 01H NE Local station Master station request of the master station after monitor time Local station power ime ou has elapsed supply Station p Another local station responded to the send aN 02H Local station Master station Cable wiring number error request of the master station y Counter value in transmission data differs from he 03H Counter error Local station Master station Cable wiring the counter value returned by the local station Cable wiring Transmission 3 Master station Message returned by the local station is Local station power Local station format error Local station incorrect supply Station number setting After monitor time has elapsed the master E p Cable wiring Monitor station does not provide a send request E t Master station Local station 4 r Master
53. 0 250 200 150 NSD 0 8 16 24 Number of input extension points 40 32 Number of output 24 extension points i 16 25 100 32 40 When the FXon 3A is used up to 2 FXon 3A s may be connected mA Example When 16 input points and 8 output points are added 24VDC service current is 100mA or less 25 200 150 100 50 o 0 8 16 24 32 40 Number of input extension points 24 Number of output 16 extension points t 8 0 When FX2n 32E is used A Example When 8 input points and 8 mA output points are added 24VDC 24 service current is 125mA or less Number of output i 16 100 50 Yo extension points 8 0 250 0 8 16 24 32 gt Number of input extension points When FX2n 48E is used MA Example When 16 input points and 16 output points are added 24VDC service current is 210MA or less 48 40 32 Number of output 24 extension points f 16 1 0 385 335 285 235 185 135 85 0 8 16 24 32 40 48 56 64 Number of input extension points 8 0 2 PERFORMANCE MELSEC A 2 2 3 Number of special extension modules and blocks and 5VDC power supply capacity When special modules and special blocks are used the number of modules and blocks connected and 5VDC current consumption must be taken into consideration 1 Number of modules and blocks connected Up to eight special
54. 2A or more ALM 2 4 24V v24 20 power supply SG 12 REMARKS 1 Limit switch for servo stop 2 For connection details refer to the Specifications and Installation Guide of the MR C servo amplifier 3 Indicates a distance between A1FXCPU and amplifier 5 FUNCTIONS MELSEC A 5 Example of connection with stepping motor driver Within 2m Drive unit A1FXCPU UDX5107N PA Juan Internal circuit Motor leads 5 wires e g UPD544 NA 5 phase stepping motor Single phase 100V115 50 60HZ POLO or Single phase 115V115 60HZ 00 115VAC Grounding wire of 0 75mm2 or more 5 FUNCTIONS MELSEC A 5 3 4 Setting for simple positioning control setting of positioning data Use the special relays and special registers to set the positioning data 1 Special relays for setting the positioning data Special relays are used to set the pulse output logic and pulse output methods according to the servo amplifier and stepping driver connected They are also used to set whether simple positioning control is used or not Once set these data are not changed during control Hence set the special relays at the first scan after power is switched on or the CPU is reset by the RESET switch Special relay settings are imported at the END processing of the preset scan Positioning cannot be started at the scan where special relays have been set
55. 52 D9153 D9162 D9163 e Coincidence output set value D9157 D9158 D9167 b3 b7 Error D9168 e Pulse input mode selection D9154 D9164 e Counter function selection D9159 D9169 Data check is made on the leading edge of the count enable signal M9154 M9174 5 FUNCTIONS MELSEC A 5 4 4 Preset function The preset function is used to rewrite the high speed counter function s present value into any value This new value is called the preset value The preset function can be used to start pulse counting from the set value The preset function is available in two methods sequence program method and external control signal method 1 Example of using the preset function The following example indicates that the production count is continued from the previous day in a system for counting the number of products In this system each product carried on a conveyor is detected by a photoelectric switch and counted by the high speed counter function a Production amount of the previous day stored in the A1FXCPU is written to the preset area of the A1FXCPU for presetting b Products are carried on the conveyor c Production amount is counted in response to the pulse input from the photoelectric switch d At the end of daily production the count value in the present value storing special registers is stored into the word devices e g D W R in the A1FXCPU latch range By Product gt Conveyor Photoel
56. 9 e a g Y y Pply Sloe S MR HOA Vj Vv SM i 3 phase 200VAC 5 5 T W W p E l R1 Ty N T I S1 i i i 1 hi i I 1 i i i 1 Within 2m 3 i le Minem gt CN1 CN2 i a i ST ii tim External emergency sto SS 40 f 5 To gency SP __IEMG 46 i j i rae SON 12 i senese RES 15 i i orgue imi z n TL 13 Within 50m Loi sese a 1 Kowar rotation stoko ene LSP 38 Reverse rotation stroke end TSN 39 VIN 20 A1FXCPU ion CN3 Monitor output 10k Y axis X axis CN1 4 MO1 A cw B12 A12 2x gt PPO 18 lt Max 1mA meter a l Set MOZ ATA deflected both COM B11 A11 pes ae mre ata eres AD SG 47 1 MOG elected Pon Ways CCW B14 A14 A NPO 19 de DC24 B15 A15 ni VDD 22 Le Wihinzm CNI VDD 21 da peo Failure ALM 48 Analog torque limit command iti PISR 1 pap 10V max current T So LIL ES Analog torque limit command le TLAN 29 10V max current iL NG 30 SD 50 Within 2m REMARKS 1 Limit switch for servo stop 2 For connection details refer to the Specifications and Installation Guide of the MR H servo amplifier 3 Indicates a distance between A1FXCPU and amplifier 5 FUNCTIONS MELSEC A 2 Example of connection with the MR J2LJA HC MF HA FF Configure up a sequence to turn off MC i series motor at alarm or emergency stop ea 4 NF MC MR 5J2 DA 2 STOP i Te Udi se aN yo ta Britio
57. A1FXCPU processing is roughly divided into the following 1 Initial processing Pre processing for execution of sequence operation Performed only once when power is switched on or the CPU is reset by the RESET switch a When there is a link setting program the link parameters for simple inter PLC link are registered Refer to Section 5 2 b The extension module extension block outputs are reset and initialized c The unlatched areas of data memory are initialized bit devices are turned off and word devices set to 0 Note that file registers are not initialized d The I O addresses of the extension modules extension blocks connected to the A1FXCPU are allocated automatically e Self diagnostic check is performed on parameter setting operation circuit etc Refer to Section 2 1 4 2 Sequence program operation processing The sequence program written to the A1FXCPU is run from step 0 to the END FEND instruction 3 END processing Post processing performed to terminate single sequence program operation processing and return sequence program run to step 0 a Self diagnostic check is made for power off I O module verify error battery low etc of the extension modules extension blocks Refer to Section 2 1 4 b The present values of timers and counters are updated and their contacts switched on off For more information on the timers and counters refer to the ACPU Programming Manual Basics c When th
58. A5 B5 terminal of the general purpose I O connector to execute presetting ON Count enable command M9154 M9174 ore Input pulse for counting TETEN f ETEEN Preset value setting special registers D9152 D9153 D9162 D9163 0 100 Preset command A5 B5 c External preset command detection flag OFF M9150 M1970 Reset executed by external preset command detection reset command or by orsi turning on M9156 M9176 Present value storing special registers i D9155 D9156 D9165 D9166 O 1 1 Write any value to the preset value storing special registers D9152 D9153 D9162 D9163 Setting range 0 to 16777215 When the value set is outside the setting range the high speed counter function is not activated At this time bit 3 b3 bit 7 b7 of D9172 turns to 1 2 Apply a voltage to the A5 B5 terminal of the I O connector This causes the present value in the present value storing special registers to be changed to the preset value in the preset value storing special registers 3 Preset can be executed independently of whether the count enable command M9154 M9174 is on or off While the external preset command detection flag M9150 M9170 is on 4 presetting cannot be performed if a voltage is applied to the A5 B5 terminal When the external preset command detection flag is on switch on the the external preset command detection reset command M9156 M9176 to switch
59. Counter value greater M9147 M9167 1 Turned on when count value gt coincidence output set value 2 Turned off when count value lt coincidence output set value b Counter value coincidence M9148 M9168 1 Turned on when count value coincidence output set value 2 Latched on if count value coincidence output set value Counter value coincidence can be reset turned off by turning on the coincidence signal reset command M9151 M9161 1 When the A1FXCPU is switched on or reset by the RESET switch M9148 M9168 turns on because the count value and coincidence output set value are both 0 Switch on the coincidence signal reset command M9151 M9161 after starting count operation or after writing data to the coincidence output set value 5 FUNCTIONS MELSEC A c Counter value less M9149 M9169 1 Turned on when count value lt coincidence output set value 2 Turned off when count value gt coincidence output set value d External preset request detection M9150 M9170 1 Turned on the leading edge of the external preset request signal X8 X9 2 Latched on if the external preset request signal X8 X9 switches off 3 Reset turned off when the external preset detection reset command M9156 M9176 is turned on e Coincidence signal reset command M9151 M9171 1 Turn this signal on when resetting the counter coincidence signal M9148 M9168 2 The coincidence reset command is valid wh
60. DICES Processing Classification Condition cre at 82 en 02 Time Hs BCD arithmetic operation instruction BCD to BIN conversion instruction Addition Subtraction MIES Division BIN gt BCD MELSEC A 25 3 25 2 35 2 35 4 26 5 26 6 37 7 37 5 24 9 pee ee O fore ar REC 59 7 184 3 184 3 46 2 46 1 185 1 eee 44 3 44 5 ES ws BIN po os sr Its sne w m 15 7 32 bits BCD gt BIN pene po m 43 7 Appendix 9 APPENDICES Data transfer instruction 16 bits pm bo pz 32 bits Negative transfer MELSEC A A id Processing Time s s9 82 01 02 is ox 32 bits DxCH Do D2 pxcHP si om o m cmp o m pomp Do D2 A T E IO A Same data batch transfer Program branch instruction Subroutine call Interrupt program enable disable Microcomputer program call BMOvP Do m 32 bite OOO bo DI Fmove po fm Without index qualification With index qualification Without index qualification With index qualification Without index CALL qualification With index qualification Without index CALLP qualification With index qualification IRET Without index qualification With index qualification Without index SUBP qualitication With index qualification Appendix 10 CJ SCJ MP RET El SUB 9 1 8 9 13 1 13 1 11 9 11 9 21 7 21 7 APPENDICE
61. DTOP ns 19193 3 10 1 56 9 WDT reset wore __ a Device 878 7 memory only 2480 7 A Sampling trace strAR __ 54 po poo o ss Carry flag reset ee pp __ si Timing clock py oT __ 11 Appendix 14 APPENDICES MELSEC A Appendix 4 List of Special Relays and Special Registers Appendix 4 1 List of Special relays The special relays are the internal relays that have specific applications in the sequencer Therefore the coil cannot be turned ON OFF on the program Except for the ones marked by 1 or 2 in the table Appendix Table 4 1 List of Special Relays Number Description Details of contents Fuse blown OFF Normal e This is ON when at least one module has a fuse blown and stays ON Module with fuse ON even if it returns to normal later blown exists I O module verify error OFF Normal This is ON if the I O module status is different from the status ON Error occurred registered at the power up It stays ON even if it returns to normal later MINI link error Normal This is turned ON if a module in a master station of the MINI link Error occurred detects an error It stays ON even if it returns to normal later AC DOWN detect No AC DOWN This is turned ON when there is a momentary power interruption AC DOWN for 20ms or less and is reset when the power is turned ON after it occurred was turned OFF Battery low Normal This is turned ON when the battery voltage dro
62. FF Executed 7a 5 57 1 Unexecuted id T C o ON gt 0FF Executed 8 3 9 0 Unexecuted AO A1 de 11 7 11 6 executed 11 7 _ 11 7 M L 11 6 B F Executes 11 7 inversion Appendix 5 APPENDICE MELSEC A Classification Instruction Condition Device Processing Time Xs Unexecuted 1 0 Executed 8 1 Shift instruction M L Unexecuted 1 0 Executed 8 1 B Y Unexecuted 8 8 Executed CE oeo Master control MC Y a M instruction L F Executes 80 5 2 MC y FEND When M9084 is on 466 6 End instruction END When M9084 is off 451 3 Other No NOP instructions operation Line feed processing is performed when printer output is provided Appendix 6 APPENDICE MELSEC A Appendix 3 2 Basic instructions os Processing Classification Condition sito tac n conan S1 S2 D1 D2 16 bits 32 bits 16 bits 32 bits Comparison instruction 16 bits 32 bits 16 bits 32 bits 16 bits 32 bits Appendix 7 APPENDICES MELSEC A Processing Classification Condition cn ata 82 en 02 Time Hs 8 7 Addition oe A A D2 13 6 D4 19 3 D4 19 4 8 7 Led sai i die D Multiplication D4 73 7 32 bits D4 73 6 lesi i Tote ee Division edi ces oe ai operation O a DO ec Jaar ope oo xi Tt tents WNC Po 57 ENEE e AL E A 8 1 7 9 6 1 5 9 8 1 Appendix 8 APPEN
63. H Switches on pulse output start signal M24 Switches off restart signal M9130 Switches off pulse output start signal when pulse output starts M9131 Switches off deceleration to stop signal when pulse output stops 5 FUNCTIONS MELSEC A 4 Simultaneous start program a Motions in simultaneous start e X and Y axis pulse outputs start when simultaneous start X2C is turned on At this time the rotation directions are set by rotation direction setting ON OFF of X24 and X25 Forward Reverse X axis rotation rotation Forward Reverse Y axis rotation rotation e The axes are decelerated to a stop when the stop command X2D is turned on during pulse output e When the restart command X2E is turned on after deceleration to stop the axes are restarted from the stop position output of remaining pulses e When simultaneous start X2C is turned on after deceleration to stop the specified numbers of pulses are output to the axes at the stop position 5 FUNCTIONS MELSEC A Frequency A 30000 X axis operation Time Frequency A 30000 Y axis operation Time ON Pulse output start OFF f f M9133 i i ON 1 Simultaneous OFF start X2C ON i Stop command OFF F i X2D i ON Restart command OFF X2E X axis output pulses 150000 n D9144 D9143 X axis present output pulses D9137 D9136 Number of output pulses at deceler
64. M9131 M9141 M9134 turns on and when the corresponding axis axes starts start decelerating Deceleration to stop Operation performed when Max 10ms M9131 M9141 M9134 does HE not turn on Running frequency 7 Pulse output start Time ON Pulse output start signal OFF M9130 M9140 M9133 ON OFF c While M9131 M9141 M9134 is on pulse output is not provided if the pulse output start signal M9130 M9140 M9133 is turned from off to on At this time a setting error occurs and M9145 M9146 turns on Refer to Sec tion 5 3 7 e M9145 X axis e M9146 Y axis Deceleration to stop M9131 M9141 M9134 ON Pulse output start M9130 M9140 M9133 corr ON Deceleration to stop M9131 M9141 M9134 _ OFF Setting error o M9145 M9146 OFF Setting error occurs since M9131 M9141 M9134 is on when M9130 M9140 M9133 turns on 5 FUNCTIONS MELSEC A 4 Forced stop M9132 M9142 M9135 a Turn on when forcing the axis being positioned to stop e M9132 Forced stop of the X axis e M9142 Forced stop of the Y axis e M9135 Simultaneous forced stop of the X and Y axes b There is a maximum of 10ms delay between when M9132 M9142 M9135 turns on and when the corresponding axis axes stops stop When the forced stop is turned on the axis stops in units of 1 pulse For example when the forced stop is turned from off to on at Low level in negative logic the axis stops after 1 pulse has fully been output
65. MELSEC A c Present value D9155 D9156 D9165 D9166 1 The present value of the counter is stored when the present value read request M9155 M9175 turns from off to on leading edge 2 For up counting when the count value exceeds 16777215 the present value turns to O and the count value stored starts with 0 Example 16777214 gt 16777215 gt 0 gt 21 gt 2 For down counting when the count value exceeds 0 the present value turns to 16777215 and the count value stored starts with 16777215 Example 251 gt 0 gt 16777215 gt 16777214 d Coincidence output set value D9157 D9158 D9167 D9168 1 Set the coincidence output values used for the following functions e Coincidence output function e Ring counter function 2 The coincidence output value may be set in the range 0 to 16777115 e Counter function selection D9159 D9169 1 Select the count disable function or latch counter function by setting the following data Refer to Section 5 4 6 for the count disable function and to Section 5 4 7 for the latch counter function Counter Function Set Value Count disable function mas Latch counter function If the value set in counter function selection is other than O and 1 the high speed counter function will not be activated At this time bit 3 b3 bit 7 b7 of D9172 turns to 1 2 The counter function selected with the counter function selection setting special register is made valid when the corresponding si
66. MITSUBISHI Type A1FXCPU Module User s Manual Function description Mitsubishi Programmable Controller e SAFETY INSTRUCTIONS e Always read these instructions before using this equipment Before using this product please read this manual and the relevant manuals introduced in this manual carefully and pay full attention to safety to handle the product correctly The instructions given in this manual are concerned with this product For the safety instructions of the programmable controller system please read the CPU module user s manual In this manual the safety instructions are ranked as DANGER and CAUTION D DANGER Indicates that incorrect handling may cause hazardous conditions resulting in death or severe injury Indicates that incorrect handling may cause hazardous conditions A CAUTION resulting in medium or slight personal injury or physical damage rm We peneana gt a ee eee eee eZ Note that the CAUTION level may lead to a serious consequence according to the circumstances Always follow the instructions of both levels because they are important to personal safety Please save this manual to make it accessible when required and always forward it to the end user Designing Instructions e Provide safety circuits outside the PLC to ensure that the system operates safely if an external power fault or PLC failur
67. N or from ON to OFF the corresponding inter rupt programs 10 to 15 can be run by the A1FXCPU A1FXCPU Switch etc 5 5 1 Instructions for the external interrupt function Observe the following instructions for the external interrupt function 1 Interrupt enable setting Interrupt disable DI is activated when the A1FXCPU is switched on or reset by the RESET switch To run the interrupt program enable interrupt by using the interrupt enable in struction El For the El DI instructions refer to the ACPU Programming Manual Common In structions 2 Restrictions on PLS PLF instructions The device turned on by the PLS PLF instruction in the interrupt program remains on until the same interrupt program is executed again 3 Status during interrupt program execution During interrupt program execution interrupt disable Dl is activated In the interrupt program do not execute the interrupt enable disable instruction EI DI 4 Use of timers in interrupt programs Timers cannot be used in the interrupt programs If a timer is used in an interrupt program its contact may be on though its coil is off or the present value may become equal to the set value 5 Interrupt program execution time If the execution time of the interrupt program to be run is 8ms or longer the pre sent value of the timer may delay by the following period every time the interrupt program is run e0 lt t lt 8 No delay e8 lt t lt 10 0 or 10m
68. Names of Parts cer 4 1 4 2 Settings e 4 3 4 2 1 RAM E PROM operation setting e 4 3 4 2 2 Write protect switch setting e 4 3 4 3 Latch Clear Operation e 4 4 5 FUNCTIONS 1 5 1 to 5 79 5 1 Function Liste 5 1 5 2 Simple Inter PLC Link i 5 3 5 2 1 Instructions for simple inter PLC link iii 5 4 5 2 2 Procedure for simple Inter PLC A 5 5 5 2 3 Wiring for simple inter PLC link sonore 5 6 5 2 4 Data to be set for simple inter PLC link iii 5 7 5 2 5 Link parameter setting method iii ei 5 10 5 2 6 Checking for errors in simple inter PLC link sonno 5 13 52 7 Loopback self check ieri eee 5 18 5 3 Simple positioning control function iii 5 20 5 3 1 Instructions for the simple positioning control function rr 5 21 5 3 2 Procedure for simple positioning control ie 5 22 5 3 3 Wiring for simple positioning control 5 23 5 3 4 Setting for simple positioning control setting of positioning data riii ii r re er gt 5 28 5 3 5 Pulse output starting positioning starting and stopping signals r riiieirrririir iei iei i gt o 5 33 5 3 6 Confirming the positioning statusestti iii 5 39 5 3 7 Checking for errors in simple positioning AO e 5 41 5 3 8 Program examples e 5 42 5 4 High Speed Counter Function iii eee 5 51 5 4 1 Instructions for the high speed counter FUNCTION iii 5 52 5 4 2 Wiring for use of the high speed counter TUNC ON iti 5 53 5 4 3 Special relays special registers for use of the high speed counter function 5 54 5 4 4 Preset functions 5 61
69. O OOO 012 3 4 5 6 7 8 9 A BCDEF OOO OOOO OO OOOO When a 48 point extension module 24 input points 24 output points is connected next to the A1FXCPU Module LED arrangement 1 0 number labels no Inputs Inputs o Outputs Outputs I O number labels i 21 22 23 3 25 26 27 1 7140 41 42 43 44 45 46 47 8888 O o _ Inputs Inputs E a 3 s 2D 2E 2F L 28 tele 0000 ili 130 31 i 150 51 52 53 54 55 56 57 30 900000005 _ Outputs Outputs Lesa 138 39 3A 3B 3C 3D 3E 3F L 88 O 0000000 7 COMMUNICATION WITH SPECIAL MODULE SPECIAL BLOCK 7 COMMUNICATION WITH SPECIAL MODULE SPECIAL BLOCK This chapter explains how the A1FXCPU reads data from the special module special block and write data to the special module special block 1 Special module special block The special module special block is a module designed for the A1FXCPU to handle analog values high speed pulses etc which cannot be handled by the extension module extension block The special module has memory buffer memory which stores data imported from external equipment and data to be output to the external equipment 2 Read write of data from to A1FXCPU The FROM TO instruction is used by the A1FXCPU to read write data from to the special module special block e Execution of the FROM instruction allows reading of the data stored in the buffer memory of the special module special block e Ex
70. S AND THEIR SETTINGS MELSEC A No Name Application 4 ERROR LED e Off e Flicker Indicates normal operation of simple inter PLC link Indicates a simple inter PLC link fault e Flicker SD LED e Off i e Flicker LINK RUN LED RD LED e Off Indicates that the self diagnostic function detected an error Remains off when the error detected is the one preset to be turned off in the LED indication priority setting Indicates a normal status or that a failure was detected with the CHK instruction Indicates that the annunciator F was switched on in the sequence program Indicates that data is being sent to the other station in simple inter PLC link Indicates that data is not yet sent to the other station in simple inter PLC link Indicates that data is being received from the other station in simple inter PLC link Indicates that data is not yet received from the other station in simple inter PLC link e RESET Hardware reset Used to make a reset at occurrence of an operation fault RESET switch ee ee and initialize operation e RUN STOP Used to execute stop sequence program operation e LATCH CLEAR L CLR Used to clear OFF or 0 latch clear data set in parameters RUN STOP switch LATCH CLEAR also clears data other than the latch clear data no Cover for protection of the built in function connector 10 Built in function connector cover When the connector is
71. Self diagnosis is a function that the A1FXCPU self checks for a error The self diagnostic function of the A1FXCPU detects an error which occurs at power on or during run and displays the corresponding error message and stops operation to prevent a PLC malfunction and perform preventive maintenance The A1FXCPU has two different operation modes for self diagnosed errors operation stop mode and operation continuation mode For some errors the continuation mode may be changed into the stop mode Refer to Table 2 2 The occurrence and definition of the error detected are stored into the corresponding special relay M and special register D Refer to Appendix 4 Especially in the continuation mode use the special relays and special registers in the program to prevent PLC or mechanical system malfunctions In the operation stop mode the A1FXCPU stops operation and switches off all outputs Y on detection of an error In the operation continuation mode the A1FXCPU runs the program with the exception of a faulty part When an I O module verify error has occurred the A1FXCPU continues operation at the I O addresses prior to the occurrence of the error Table 2 2 on the next page indicates self diagnosed errors 2 PERFORMANCE MELSEC A Tale 2 2 Self Diagnosis List 7 g Lak a a CPU RUN LED Error Display of Error Diagnosis Diagnosis Timing Status Status Peripheral Code Instruction code check When that instruction is execute
72. XO AND XO and ANI XO 2 There are several CHK instructions 3 There are more than 150 contacts in the CHK instruction ladder block 4 The X device number in the CHK instruction ladder block is greater than X1FE 5 There is no following ladder block before the CHK instruction ladder block HE H 6 The device number of D1 in the instruction is not the same as that of the contact before the CJ instruction 7 Pointer P254 is not provided at the beginning of the CHK instruction ladder block PHHH 1 There are several interrupt pointer numbers 2 No IRET instruction in the interrupt program 3 IRET instruction used outside the interrupt program 1 The sequence processing operation circuit in the CPU does not operate properly Scan time exceeds watchdog error monitor time 1 User program scan time has increased 2 Instantaneous power failure during program scan has caused scan time to increase MELSEC A 1 Check for any of 1 to 7 error causes in the CHK instruction ladder block If any correct the fault with the peripheral and restart operation 1 Create a corresponding number of interrupt programs or remove the same numbers 2 Check for IRET instruction in the interrupt program If not found write the IRET instruction 3 Check for the IRET instruction outside the interrupt program If found delete the IRET instruction CPU hardware fault contact your sales
73. YSTEM CONFIGURATION MELSEC A 3 3 System Equipment List Table 3 3 indicates the FX2n and FXon series extension modules extension blocks special modules and special blocks that may be connected with the A1FXCPU Table 3 3 System Equipment List Type Description Occupied ipti Points 24VDC input 16 points relay output 16 points power FX2N 32ER De 32 points supply 100 to 240VAC built in 24VDC input 16 points triac output 16 points power FX2N 32ES Aa 32 points supply 100 to 240VAC built in 24VDC input 16 points transistor output 16 points _ TASTE ly 100 to 240VAC built i Sa points Extension module power supply t 9 pe 24VDC input 24 points relay output 24 points power f FX2N 48ER An 64 points supply 100 to 240VAC built in 24VDC input 24 points transistor output 24 points FX2N series 24VDC input 24 points triac output 24 points power n FX2N 48ES NE 64 points supply 100 to 240VAC built in FX2N 48ET So 64 points power supply 100 to 240VAC built in FX2N 16EX 24VDC input 16 points 16 points a FX2N 16EYT Transistor output 16 points 16 points Extension block FX2n 16EYR Relay output 16 points 16 points FX2N 16EYS Triac output 16 points 16 points FX2N 4AD 4 channel analog input 8 points FX2N 4DA 4 channel analog output 8 points FX2N 4AD PT 4 channel temperature sensor input PT 100 8 points Special block FX2N 1PG 100kpps pulse output 8 points FX2N 1HG 50kHz 2 phase high speed
74. a from the device specified at exceeds the specified device range Je REMARKS In n1 set the position of the special module special block counted from the A1FXCPU Extension module A1FXCPU Special module Special module Set n1 0 Set n1 1 7 COMMUNICATION WITH SPECIAL MODULE SPECIAL BLOCK Program Examples MELSEC A The following program reads 1 word data from K2000 of the buffer memory of the special module special block located in the second position from the A1FXCPU to DO when X20 is switched on X020 H K K 0 p FROM 0001 2000 DO The following program reads 2 word data from K2000 of the buffer memory of the special module special block located in the second position from the A1FXCPU to DO and D1 when X20 is switched on X020 H K i DTO 0001 0 DO REMARKS During execution of the FROM DFRO TO DTO instruction interrupt program execution control can be exercised by M9119 e When M9119 is off FROM TO instruction overrides interrupt While the FROM DFRO TO DTO instruction is being executed interrupt is disabled and an interrupt program is not run if an interrupt occurs For any interrupt that occurred during execution of the FROM DFRO TO DTO instruction the corresponding interrupt program is run after completion of the FROM DFRO TO DTO instruction execution When M9119 is off the FROM DFRO TO DTO instruction can be used in an interrupt program W
75. arge current approximately ten times greater than that present in normal circumstances may flow when the output is turned OFF to ON Take measures such as replacing the module with one having sufficient rated current Installation Precautions Use the PLC in an environment that conforms to the general specifications given in this manual Not doing so can cause an electric shock fire misoperation or product damage or deterioration e Completely turn off the external power supply before loading or unloading the module Not doing so could result in electric shock or damage to the product e Do not touch the conductive areas and electronic parts of the module directly Doing so can cause the module to misoperate or fail Wiring Instructions lt N DANGER e Before starting mounting wiring or other work always switch power off externally in all phases Not doing so may cause an electric shock or product damage e When switching power on or starting operation after mounting wiring or other work always fit the supplied terminal cover to the product Not doing so can cause an electric shock e Be sure to ground the FG terminals and LG terminals to the protective ground conductor Not doing so could result in electric shock or erroneous operation e Wire the module correctly after confirming the rated voltage and terminal arrangement of the product A fire or failure can occur if the power supply connected is different from th
76. ation to stop Setting of remaining pulse count Y axis output pulses D9149 D9148 Y axis present output pulses D9139 D9138 Number of output Setting of remaining pulses at deceleration pulse count to stop 5 FUNCTIONS 19 45 49 59 b Program example M9038 SET M9126 RST M9127 SET M9128 SET M9136 RST M9137 SET M9138 M42 M9143 M9144 D D9143 D9136 1 0 0 D D9148 D9138 Re ST Ma X002C a MO M40 M9128 M9138 M9143 M9144 X002D PLS MAI SET M42 MAI X0024 RST M9129 X0024 HAS ET 9129 PK MOV 30000 D9141 PK MOV 1000 D9142 PK DMOV 1500000 D9143 X0025 RST M9139 X0025 PP sk7 19139 PK MOV 30000 9146 PK MOV 1000 9147 PK DMOV 1500000 D9148 SET M9133 RST M44 5 49 MELSEC A Sets positive logic X axis Sets PULSE SIGN X axis Sets that simple positioning is used X axis Sets positive logic Y axis Sets PULSE SIGN Y axis Sets that simple positioning is used Y axis Switches off pulse outputting signal on completion of X Y axis pulse outputs Accepts simple positioning start Simple positioning command Switches on pulse outputting signal Sets forward rotation direction X axis Sets reverse rotation direction X axis Sets running frequency 30kHz X axis Sets acceleration deceleration time 1 sec X axis Sets output pulse count 1500000 X axis Sets forward rotation direction Y axis Sets reverse rotation d
77. ble length m Load current Pulse speed Duty Duty Duty Duty MA o dentista O eof ot 7 48 01 11 46 01 03 so 01 os 50 wo for fos so Tor is oo os os so or oa so 6 fo Los ae Pos os as oz os so oz fos so Ll to osos 50 Jot 04 50 02 03 so 02 03 50 Units tf tr us Duty REMARKS 1 In Table 2 12 tr indicates a pulse rise time and tf its fall time ON 2 PERFORMANCE MELSEC A 2 5 Performance of the High Speed Counter This section provides the high speed counter performance of the A1FXCPU 2 5 1 High speed counter performance list Table 2 13 gives the high speed counter performance list of the A1FXCPU Table 2 13 Performance List lo ttem O Specifications Counting speed selection setting 1 phase 2 phase 60kpps 1 phase 10kpps 2 phase 7kpps Number of channels 2 channels Phase 1 phase input 2 phase input Count input 5 CH 1 dA XA B XC Count input signal CH 2 dA XB B XD 1 phase input multiplied by 1 1 phase input multiplied by 2 Pulse input mode 2 phase input multiplied by 1 2 phase input multiplied by 2 2 phase input multiplied by 4 1 phase q 60kpps Counting input speed max 2 phase input Counting range oOo oteras SOSY to 16777215 Counter UP DOWN preset counter ring counter function k__ Min count pulse width duty ratio 50 8 5us 8 5us 1 2 phase input 0 to 16777215 Compariso
78. can where the pulse output start signal M9130 M9133 M9140 switches from OFF to ON e Setup time when PULSE SIGN method is chosen D9150 D9151 1 Set the time from when the SIGN signal is switched until pulse output from the A1FXCPU is made valid in the drive unit When the pulse output method is CW CCW the setup time setting is invalid ON A Start of pulse output SIGN OFF ON PULSE o ULL ULL JI Preset setup time gt 5 32 5 FUNCTIONS MELSEC A 5 3 5 Pulse output starting positioning starting and stopping signals Use the special relays in Table 5 9 to start and stop pulse outputs Table 5 9 Special Relays Used to Start and Stop Pulse Outputs Operation at ON OFF Validity of ON OFF Relevant Use of si Use of Axis OFF gt 0N multaneous X axis start Rotation direction Forward Reverse M9129 switching rotation rotation X axis orso us i start No proc Pulse output No proc oe o essing start essing ar pe to No proc Deceleration 2 rar 31 Stop o Fi essing to stop morsa Pos ae E No proc Immediate 2 sra i Stop OF essing stop ers a arenes start No proc Pulse output No proc arenes essing start essing X Y axes Deceleration to No proc Deceleration 1 1 Simul M9134 Stop Os o O stop essing to stop taneous Forced stop No proc Immediate 4 4 M9135 Stop o o O essing stop Rotation direction Forward Reverse M9139 switching rotation rotation
79. cessing Time O Sd Appendix 4 Appendix 3 1 Sequence instructions A a a siete Appendix 4 Appendix 3 2 Basic instructions A A A AE SEA E NE Appendix 7 Appendix 3 3 Application instructions RON Appendix 11 Appendix 4 List of Special Relays and Special Registers AEON I Appendix 15 Appendix 4 1 List of Special relays Cod NS IR O ROTTE A IT Appendix 15 Appendix 4 2 List of Special registers REIT IR E PAR I N O eso RS E NONE I A TTS Appendix 20 1 INTRODUCTION 1 INTRODUCTION 1 1 Features MELSEC A The A1FXCPU is a CPU module including a CPU power supply and I O input 14 points output 4 points in one body and capable of control using A series instructions The A1FXCPU incorporates the simple inter PLC link function simple positioning function high speed counter function and interrupt input function The FX series extension modules extension blocks special modules and special blocks can be connected to the A1FXCPU to control them The A1FXCPU module has the following features 1 CPU module having a power supply CPU and I O in one body The A1FXCPU contains the power supply CPU I O input 14 points output 4 points and program memories RAM E PROM 2 Special functions incorporated in the CPU module The CPU modules incorporates the simple inter PLC link function simple positioning function high speed counter function and interrupt input function in addition to the A2SHCPU functions 3 A series instructions available
80. cial module or special block occupies the number of I O points in Table 3 3 The I O number assignment of a special module or special block having 8 I O points in Table 3 3 should be set in the same way as when there are no special modules and special blocks Since the FXon 16NT FX 16NT and FX 16NP do not occupy 8 points assign their I O numbers as in the I O assignment of I O blocks The FXon 16NT S3 and FX 16NT S3 occupy 8 points and their I O numbers should be assigned as in the I O number assignment of I O blocks c For details of I O number assignment refer to Chapter 6 4 Communication with special module special block The FROM TO instructions are used for communication with a special module special block Note that the ways of specifying the FROM TO instructions are different For full information refer to Chapter 7 5 Instructions for use of special modules special blocks The following special modules special blocks continue operating normally when the A1FXCPU is reset or an operation error occurs When it is necessary to stop their operations in user s system configuration make up an interlock circuit outside the PLC 1 3 1 INTRODUCTION MELSEC A a Special module special block operations e FXon 3A Analog outputs hold the RUN mode output states e FX 1GM Continues positioning operation e FX 10GM Continues positioning operation e FX 20GM Continues positioning operation b Interlock circuit Configure u
81. coincidence M9148 M9168 AS pei AREE Coincidence signal reset command 5 ON M9151 M9171 OFF nl i i SR E Preset command SAR ge le M9152 M9172 a AO E O Present value storing special registers 190 D9155 D9156 D9165 D9166 1 Set a preset value in the preset value setting special registers D9152 D9153 D9162 D9163 Setting range 0 to 13777215 When the value set is outside the setting range the high speed counter function is not activated At this time bit 3 b3 bit 7 b7 of D9172 turns to 1 2 Set a ring count value in the coincidence output setting special registers D9157 D9158 D9167 D9168 Setting range 0 to 13777215 When the value set is outside the setting range the high speed counter function is not activated At this time bit 3 b3 bit 7 b7 of D9172 turns to 1 3 Switch on the preset command M9152 M9172 On the leading edge OFF ON of the preset command the present value in the present value storing special registers is changed to the preset value in the preset value storing special registers Preset can be executed independently of whether the count enable command M9154 M9174 is on or off 5 FUNCTIONS MELSEC A 4 Turn on the ring counter setting M9157 M9177 During execution of the ring counter function the preset value and ring count value cannot be written 5 When the count value reaches the ring count value the counter coincidence signal switches
82. d INSTRCT CODE ERR e When power is switched on or Parameter setting check RIO PARAMETER ERROR ing e When STOP PAUSE is switched to RUN When STOP PAUSE is switched No END instruction de ae e MISSING END INS e When CJ SCJ JMP CALL P or Instruction execution FOR NEXT instruction is executed disable e When STOP PAUSE is switched to RUN When STOP PAUSE is switched Format CHK check ae ed CHK FORMAT ERR e When interrupt occurs e When STOP PAUSE is switched CAN T EXECUTE I to RUN e When power is switched on or CPU is reset RAM check e When M9084 is switched on in RAMEBROR 20 STOP mode Stop Flicker Memory error Stop Flicker CAN T EXECUTE P Instruction execution disable Wh itched Operation circuit check Power is switched on or OPE CIRCUIT ERR CPU error CPU is reset Watchdog error monitor e When END instruction is executed WDT ERROR END instructio ot t t E ECUTE 2 e When END instruction is executed ND NOT EXI executed Endless loop execution WDT ERROR Main CPU check MAIN CPU DOWN 1 0 modul if i module verify e When END processing is executed UNIT VERIFY ERR 31 TI Default Stop Not checked when M9084 is on Power off e When END processing is executed Default Continuation Not checked when M9084 is on FUSE BREAK OFF Wh FROM TO instructi i Control bus check id iS CONTROL BUS ERR executed Special functi dul i i i pecial function module e When FROM TO instruction
83. d at n2 in the buffer memory of the special module special block specified at n1 Special module special block A1FXCPU buffer memory Device number specified at S ere EA Eade ide 7 COMMUNICATION WITH SPECIAL MODULE SPECIAL BLOCK Device number specified at S Execution Conditions Operation Error MELSEC A DTO Writes 2 x n3 point data in the devices number starting from the one specified at to the addresses beginning with the one specified at n2 in the buffer memory of the special module special block specified at n1 Special module special block A1FXCPU buffer memory E De H 2x3 points 2xn3 words The TO and DTO instructions are executed every scan while the write command is ON The TOP and TOP instructions are executed only once on the leading edge OFF gt ON of the write command ON Write command OFF Executed every scan Executed every scan Executed only once Executed only once Any of the following conditions will result in an operation error and the error flag switch on e The special module special block cannot be accessed e The value specified at n1 is other than 0 to 7 e n3 point data from the device specified at exceeds the specified device range Je REMARKS In n1 set the position of the special module special block counted from the A1FXCPU Extension A1FXCPU modu
84. e occurs Not doing so may cause misoutput or misoperation 1 Configure up circuits e g an emergency stop circuit a protective circuit interlock circuits for forward reverse rotation and other opposite operations and interlock circuits for machine damage prevention such as upper and lower positioning limits outside the PLC For an interlock circuit example refer to the A1FXCPU User s Manual Setup 2 When the PLC detects either of the following faulty conditions it stops operation and switches off all outputs e The overcurrent or overvoltage protector of the power supply module is activated e The self diagnostic function of the PLC CPU detects a fault such as a watchdog timer error Faults undetectable by the PLC CPU e g a fault at the I O control section may cause all outputs to switch on The external circuit and mechanism should be designed to ensure that the machine operates safely at such a time For a failsafe circuit example refer to the A1FXCPU User s Manual Setup 3 The output current of the service power supply for sensor differs according to the model and whether there are extension blocks or not If overload occurs the voltage drops automatically PLC inputs become inoperative and all outputs switch off The external circuit and mechanism should be designed to ensure that the machine operates safely at such a time 4 Some failures of relays transistors and other devices of the output module may cause outputs t
85. e one registered when the power was turned ON is detected such I O module number in 16 point unit is stored The I O module number set by the parameter is stored if set by the parameter The I O module information of the remote station can also be detected 15 14 13 12 11 10 9 Indicates an I O module verify error e The I O module number range to be displayed can be selected by switching ON OFF of the M9197 and M9198 Clearing data of the matching error can be executed by turning M9002 matching error OFF Number of items detected by the annunciator Number of items detected by the annunciator The content of the D9124 increments by 1 when one of FO to 2047 is turned ON by OUT F or SET F and the content of the D9124 decrements by 1 when RST F or LEDR instruction is executed The number of items which were turned ON by SET F is stored up to 8 OUT F or Appendix 24 APPENDICES MELSEC A Appendix Table 4 2 List of Special Registers Continued Number Description Details of contents Annunciator detect Annunciator detect When one of FO to 2047 is turned ON by OUT F or SET F number number the F number which was turned ON is registered in D9125 to D9132 in their order The F numbers which were turned OFF by are deleted from D9125 to D9132 then moved to the data register which is after the data register that the deleted number
86. e rating or wiring is incorrect e Do not connect the A1FXCPU and extension module service power supply outputs in parallel Doing so can cause the power supply module to overheat leading to a fire or failure e Do not supply external power to the 24V 24G terminals of the A1FXCPU and the terminal of the extension module Also do not wire the empty terminal NC of the A1FXCPU and the empty terminal Le of the extension module externally Doing so may cause product damage e Tighten the terminal screws to the specified torque Undertightening can cause a short circuit fire or misoperation Overtightening can cause a drop short circuit or misoperation due to damaged screws or module e Ensure that foreign matters such as chips and wire off cuts do not enter the module They can cause a fire failure or misoperation e Do not connect multiple power supply modules to one module in parallel The power supply modules may be heated resulting in a fire or failure Starting and Maintenance Precautions e Do not touch the terminals while power is on This can cause an electric shock or misoperation e Connect the battery correctly Do not recharge disassemble heat short or solder the battery or throw it into fire Improper handling of the battery may result in injury or fire due to heating burst combustion etc e Before starting cleaning or terminal screw retightening always switch power off externally in all phases Not doing
87. e sampling trace point is per scan after execution of the END instruction the statuses of preset devices are stored into the sampling trace area d When a refresh request is given during use of simple inter PLC link link refresh processing is carried out e When the simple positioning function is used pulse output start stop processing is performed f The extension modules extension blocks are I O refreshed ON OFF data updated For details of refresh processing refer to the ACPU Programming Manual Basics 2 PERFORMANCE MELSEC A 2 1 3 Operation processing in RUN STOP and PAUSE modes The A1FXCPU has three different operation modes RUN mode STOP mode and PAUSE mode This section describes the operation processing of the PLC CPU performed in each mode 1 Operation processing in RUN mode In the RUN mode sequence program operation is repeated in sequence of step 0 to END FEND instruction to step 0 When entering the RUN mode the CPU outputs the output status saved in the STOP mode according to the STOP gt RUN output mode setting in the parameter Processing time up to the start of sequence program operation which depends on the system configuration is as follows e When power is switched on or the CPU is reset by RESET switch 2 to 3s e When the CPU is switched from STOP to RUN 1 to 3s 2 Operation processing in STOP mode In the STOP mode sequence program operation is stopped by e Moving
88. ectric switch A1FXCPU Pulse UUU m Tiii H o Word devices in latch range for storage of production amount 5 FUNCTIONS MELSEC A 2 Presetting methods There are two presetting methods sequence program and external control signal methods a Sequence program method Turn on the preset command M9152 M9172 in the sequence program to execute the preset function Count enable command M9154 M9174 Input pulse for counting MA A AREE Preset value setting special registers D9152 D9153 D9162 D9163 Preset command M9152 M9172 OFF Present value storing special registers D9155 D9156 D9165 D9166 67 100 101 102 103 104 105 106 1 Write any value to the preset value storing special registers D9152 D9153 D9162 D9163 Setting range 0 to 16777215 When the value set is outside the setting range the high speed counter function is not activated At this time bit 3 b3 bit 7 b7 of D9172 turns to 1 2 Turn the preset command M9152 M9172 from off to on On the leading edge OFF to ON of the preset command the present value in the present value storing special registers is changed to the preset value in the preset value storing special registers Preset can be executed independently of whether the count enable command M9154 M9174 is on or off 5 FUNCTIONS MELSEC A b External control signal method A voltage is applied to the
89. ecution of the TO instruction allows writing of data to the buffer memory of the special module special block Special module special block AO EN ia 1 Write by TO instruction S External A1FXCPU Buffer memory da lt equipment Read by FROM instruction i E e e E AEE Note that a frequent execution of FROM TO instructions on the target special module special block may not be processed normally When executing the FROM TO instructions on the special module special block set the special module special block timer or a constant scan with the FROM TO instruction timings 7 1 7 COMMUNICATION WITH SPECIAL MODULE SPECIAL BLOCK MELSEC A 7 1 Reading 1 or 2 word data from the special module special block ies FROM FROMP DFRO DFROP Carry Error Flag Flag M9010 M9011 EERE CCE Cp i 529 105908 E E Ze fale oe Sie A alls Available Device Cons 7 Bit device Word device Pointer Level tant p Specification fololo Jofololofo ofol CE O A ea E a 101 Fa a A E 2 IA The digit specification of the FROM P instruction is K1 to K4 The digit specification of the DFRO P instruction is K1 to K8 Instruction symbols in parentheses Read commands FROM DFRO Set data VT Position of special module special block counted from A1FXCPU 0 to 7 Head address of special module special block from which data is to
90. ed a When the ring counter function is selected M9157 M9177 ON the coinci dence interrupt function cannot be used b The ring counter function is not activated when counter value coincidence M9148 M9168 is on After setting the coincidence output set value D9157 D9158 D9167 D9168 used for the ring counter turn on the coincidence sig nal reset command M9151 M9171 to reset the counter value coincidence 4 Interrupt input priority e The interrupt priority is as follows Priority interrupt Pointer Name High 12 External interrupt input X2 CH 1 CH 2 Time interrupt 10ms Time interrupt 20ms Time interrupt 40ms e When one interrupt occurs during interrupt program execution the interrupt pro gram corresponding to the next interrupt is executed on completion of that in terrupt program execution e When two or more interrupts occur during interrupt program execution the in terrupt program corresponding to the highest priority interrupt is executed on completion of that interrupt program execution e For example when interrupt inputs corresponding to I5 and 12 take place during execution of the 14 interrupt program 12 interrupt is executed on a priority basis When using interrupt programs refer to the instructions in Section 5 5 1 5 52 5 FUNCTIONS MELSEC A 5 4 2 Wiring for use of the high speed counter function The connection example shown below is designed for use of the high
91. er 1 Example of using the function In a machining line system machining operations are performed in response to the corresponding coincidence outputs to turn out products as shown below a Materials are carried on a belt conveyor b Each material position is identified as the present count value determined by the pulse entered into the A1FXCPU c When the material reaches the preset position the counter coincidence spe cial relay M9148 M9168 is turned on or the interrupt program 112 113 is executed to perform the required operation gt Part cutting Y output A1FXCPU M9148 FEND i NAAA 11 M9039 N Pulse input O gt Delete when interrupt occurrence is not needed J C A IRET 5 FUNCTIONS MELSEC A 2 Coincidence output function operation The operation of the coincidence output function is shown below ON Count enable command OFF M9154 M9174 a ATI special registers 1 100 Coincidence output setting D9157 D9158 D9167 D9168 Counter value less M9149 M9169 Counter value coincidence M9148 M9168 Coincidence signal reset command M9151 M9171 Counter value greater M9147 M9167 Present value storing special registers D9155 D9156 D9165 D9166 1 Set a coincidence output set value in the coincidence output setting special registers D9157 D9158 D9167
92. er words the minimum value of the scan time is stored in the D9017 as a BIN code Scan time Scan time in 10ms unit For each END the scan time is stored as a BIN code and always updated Scan time Constant scan Maximum scan time in 10ms unit Constant scan time set in 10ms unit by the user For each END if the scan time is larger than that of the D9019 the value is stored In other words the maximum value of the scan time is stored in the D9019 as a BIN code The execution interval is set in 10ms unit when the user program is executed at a constant interval 0 No constant scan function 1 to20 Constant scan function is available interval of setting value X 10ms Executed at an Scan time Scan time in 1ms unit For each END the scan time is stored as a BIN code and always updated Time Time Incremented by one for every second Appendix 21 APPENDICES Number MELSEC A Appendix Table 4 2 List of Special Registers Continued Clock data Description Clock data year month Details of contents e Year the last two digits and month are stored as BCD code in the D9025 as follows Example July 1997 H9707 Clock data Clock data day hour Example 31st 10 o clock H3110 Clock data Clock data Clock data minute second Clock data day of the week e Minutes and second
93. eries FX 10PSU 24VDC 1A power supply for external service power suppl MOS Power supply module power Supply i power supply FX 20PSU 24VDC 2A power supply for external service power supply Rega For connection of FX series special extension block to Conversion cable FX2N CNV IF A1FXCPU FX 25DU Data access module direct PLC connection type ei FX 30DU B Blue liquid crystal screen data access module eee Black and white liquid crystal screen data access FX 40DU module FX 40DU B Blue liquid crystal screen data access module 51 el Black and white liquid crystal screen data access FX 40DU TK module Touch key type Data access module Blue liquid crystal screen data access module Touch FX 40DU TKB key type Black and white liquid crystal screen data access FX 50DU TK module Touch key type Color liquid crystal screen data access module Touch FX 50DU TKS key type Cable for connection of data access module and FX 40DU CAB A1FXCPU 3m Large sized graphic operation terminal A985GOT Sur 800x600 dots TFT color liquid crystal 256 colors Large sized graphic operation terminal A975GOT 640x480 dots TFT color liquid crystal 256 colors 640x480 dots TFT color wide angle view 256 colors Large sized graphic operation terminal 640x480 dots TFT color liquid crystal 16 colors A970GOT 640x480 dots TFT color wide angle view 16 colors 640x480 dots STN color 8 colors 32 32 special 640x480 dots STN monochrome 2 color
94. erminal of the Built in function connector switches off 5 68 5 FUNCTIONS MELSEC A 5 4 7 Latch counter function Count enable command M9154 M9174 Counter s present value Counter function selection start command Latch counter trigger request M9159 M9179 A4 B4 terminal Latch count value storing special registers D9160 D9161 D9170 D9171 The latch counter function latches the present value at a time when an external sig nal is input When the latch counter function is used the relationships between the counter s pre sent value counter function selection start command and latch count value storing special registers are as shown below ON OFF o 150 100 50 OFF 150 100 50 1 to 4 On the leading edge OFF to ON of the counter function selection command M9159 M9179 or the Built in function connector s A4 B4 terminal signal the counter s present value is stored into the latch count value storing special registers D9160 D9161 D9170 D9171 The latch counter function can be executed independently of whether the count enable command M9154 M9174 is on or off FUNCTION MELSEC A 5 4 8 Coincidence output function The coincidence output function turns on the counter coincidence special relay M9148 M9168 or runs the interrupt program 112 113 when the preset value matches the present value of the count
95. ern e Number of x D9179 e Set the number of retries up to error detection 0 to 10 retries e Set the local station no response time monitor D9180 Monitor time 5 to 255 5 time to the master station M Master station L Local station O Must be set A Set when initial value is changed operative with initial value Need not be set 1 Corresponding station number setting a Set the station number of the host station to the special register D9176 with any of 0 to 7 Station Master Local Station Number Station Station1 Station2 Station3 Station4 Stations Station 6 Station 7 seting o 1 2 3 4 s se 7 b Station numbers must be set to the master and local stations Any station without this setting cannot make data communication in simple inter PLC link 5 FUNCTIONS MELSEC A 2 Local station count setting a Set the number of local stations connected to simple inter PLC link to the special register D9177 Number of 4 modules 6 modules 7 modules local stations seting 1 2 3 4 5 e 7 b The local station count setting is required for the master station only It is not need for local stations 3 Refresh range setting a Set the number of points per station for data communication in simple inter PLC link to the special register D9178 with any of patterns 0 to 2 0 to 2 ae ___ Pattemo Patemi Pattem2
96. ert 32768 to 60000Hz into hexadecimal numbers before setting For example set 32768 as 8000H and 60000 as EA60H 5 31 5 FUNCTIONS MELSEC A c Acceleration deceleration time D9142 D9147 1 Set the time required to reach the running frequency from pulse output start acceleration time and the time required to make a stop from the running frequency deceleration time The acceleration time and deceleration time are the same value 2 The preset acceleration deceleration time is made valid in the END processing of the scan where the pulse output start signal M9130 M9133 M9140 switches from OFF to ON d Number of output pulses D9143 D9144 D9148 D9149 1 Set the travel for simple positioning 2 Set any of 0 to 16777215 as the number of output pulses Use the rotation direction switching register M9129 M9139 to change the moving direction Setting of 0 provides no pulse output and resets the present output pulse count storing special registers D9136 D9137 D9138 D9139 to 0 to terminate simple positioning Reverse rotation direction Forward rotation direction Stop position e G oo Travel Travel 3 If the number of output pulses set is too small to reach the running frequency the operation as shown below is performed Frequency A Running frequency gt Time 4 The output of the preset number of pulses is started in the END processing of the s
97. etting range MO ttt rr 2 9 2 1 7 Memory capacity main program file register comment etc setting 2 10 2 2 Performance of the Power Supply Section unione 2 12 2 2 1 Power supply section performance liste 2 12 2 2 2 Number of extension points and 24VDC service power supply capacity 2 14 2 2 3 Number of special extension modules and blocks and 5VDC power supply capacity 2 16 2 3 Performance of Simple Inter PLC Link iii 2 18 2 3 1 Simple inter PLC link performance iSt eee 2 18 2 3 2 Interface specifications rr 2 19 2 3 3 Specifications of the twisted pair cable 2 20 2 4 Performance of Simple Positioning e 2 21 24 1 Simple positioning performance listone 2 21 2 4 2 Interface specifications e 2 22 24 3 Output specifications AA 2 23 2 5 Performance of the High Speed Counter iii 2 24 2 5 1 High speed counter performance iSt eee 2 24 2 5 2 Interface specifications e 2 25 2 6 Performance of the External Interrupt Function 2 26 2 6 1 External interrupt function performance liste 2 26 2 6 2 Interface specifications e 2 27 2 7 Terminal Arrangement of the Built in Function Connector iii 2 28 2 8 Performance Specifications of the Terminal BlOCK nre 2 29 3 SYSTEM CONFIGURATION 1101 3 1 to 3 9 3 1 Overall Configuration e 3 1 3 2 System Configuration Instructions iii 3 3 3 2 1 Hardware nie 3 3 3 2 2 Software packages e 3 6 3 3 System Equipment List CARRIERE A KANOE A a ANEN 3 7 4 NAMES OF PARTS AND THEIR SETTINGS A O 4 1 to 4 4 4 1
98. f the A1FXCPU e When there is no link setting program written move the RUN STOP switch to the STOP position and write the link setting program from the peripheral to the A1FXCPU e When the RUN STOP switch of the A1FXCPU is moved from STOP to RUN simple inter PLC link starts Simple inter PLC link is also started by switching on the power of the A1FXCP U or by resetting the A1FXCPU by the RESET switch b When the function is abnormal the possible cause is an A1FXCPU hardware fault Therefore change the A1FXCPU 5 FUNCTIONS MELSEC A 2 1 The loopback self check may only be made when the A1FXCPU is in the STOP mode When the A1FXCPU is in the RUN mode the loopback self check cannot be made if M9193 is turned on 2 The loopback self check may be performed if there is no link setting program written 5 FUNCTIONS MELSEC A 5 3 Simple positioning control function 1 Simple positioning control function One servo amplifier and one stepping motor driver may be connected to the A1FXCP U to exercise simple positioning control with max 60kpps pulses output A1FXCPU R Stepping motor 2 Positioning data refer to Section 5 3 4 In simple positioning control set the following positioning data to the special relays and special registers e Pulse output logic method negative logic positive logic e Pulse output method CW CCW PULSE SIGN e Start stop frequency e Running frequency e Acceleration decele
99. g so will cause the axes to decelerate to a stop 6 Zeroing There is no zeroing function in simple positioning control FUNCTION S FUNCTIONS MELSEC A 5 3 2 Procedure for simple positioning control Use the following procedure to exercise simple positioning control Wire the A1FXCPU drive unit and Refer to Section 5 3 3 positioning I O Set the pulse output logic and Refer to Section 5 3 4 1 pulse output methods Specify that positioning control Refer to Section 5 3 4 1 is used munmas Refer to Section 5 3 4 2 Set the positioning control data Refer to Section 5 3 5 Set the positioning direction Refer to Section 5 3 5 Start positioning 5 FUNCTIONS MELSEC A 5 3 3 Wiring for simple positioning control The following diagrams show connection examples of the A1FXCPU for simple positioning 1 Example of connection with the MR HLIA pe i Regenerative brake option Configure up a sequence to turn off na 142 Servo motor MC at alarm or emergency stop E NF MC wou i i Power suppl 1
100. gnals of the following signals turn from off to on leading edge The counter function should be changed when the corresponding signals of the following signals are off e Counter function selection start command M9159 M9169 e A4 B4 of the Built in function connector e Count enable M9154 M9174 f Latch counter value D9160 D9161 D9170 D9171 1 The present value of the counter is stored when the counter function selection start command M9159 M9179 or A4 B4 of the general purpose Built in function connector turns from off to on leading edge in the latch counter function FUNCTION S FUNCTIONS MELSEC A g Status D9172 1 The status of the high speed counter function is stored into bits 0 7 b0 b7 e Bit locations of D9172 Not used CH 2 CH 1 gt B15 B8 B7 B6 B5 B4 B3 B2 B1 BO 1 for error a E 1 for down counting 1 for enable 1 for enable 1 for down counting 1 for error e Application of each bit Signal Name 1 indicates down counting Bown e When down count designation M9153 M9163 is on b4 in the 1 phase mode counting p e A and B phase pulses are in the down count phase in the 2 phase mode 1 indicates the count input acceptable status Enable The count input acceptable status means that count enable M9154 M9174 is on and count disable M9159 M9179 or A4 B4 is off e ETTI I I 1 indicates that any of the following data is outside the setting range e Preset value D91
101. gram ga Write protect 32k bytes 7 ci At least 1k step required gt Peripheral range Microcomputer program Read Not used T C set values Seqlence program Must not be used Write protect range Used by system 32k bytes At least 1k step required Microcomputer program f Not used Not used Not write protected gt Made usable by SWOGHP UTLP FN1 RAM capacity 64k bytes Extension file registers Extension file registers Sampling trace area Sampling trace area Not write protected Status latch area Status latch area File register area File register area Comment area Comment area Fig 2 2 Sequence of Data Storage into User Memory 3 Procedure for writing parameters T C set values and sequence program to E PROM Write parameters T C set values and sequence program to E PROM in the following procedure e On the peripheral read the parameters T C set values and sequence program from RAM Read from RAM is not required when above data were stored on the programming peripheral in the RAM operation mode e Move the DIP switch to the ROM position e Switch power on again e Vrite the parameters T C set values and sequence program from the peripheral to E PROM REMARKS 1 In Fig 2 2 parameters occupy 3k bytes and T C set values 1k byte 1 to 14k steps 2 to 28k bytes can be set to the sequence program 2 11 2 PERFORMANCE MELSEC A 2 2 Performance
102. gt OROOONON 000000 000 INPUT OUTPUT o 2 S 3 3 o o o MITSUBISHI ma o Da O esror Die MELSEC A1FXcru ae ap camu RUN ODsD ERROR O CORD 130 5 12 Unit mm inch Appendix 3 EXT CON 80 3 15 5 0 20 MELSEC A APPENDICE CES MELSEC A Appendix 3 Available Instructions and Processing Time Appendix 3 1 Sequence instructions Classification Instruction Condition Device Processing Time 4s LD Contact instruction X Y M L B F T C a Unchanged Y L B OFF gt 0FF ON gt 0N M Other than special M Rees i rere ON gt 0FF Speciaim 0 M p Unexecuted Executed Instruction execution time Unexecuted A o ek ey T Processing time After time Ea Executed Added 22 0 en 24 0 Instruction execution time 0 25 Unexecuted ed uncounted 0 C Processing time executeg Aftercountout 0 xecute K a DR E Appendix 4 APPENDICE MELSEC A Classification Instruction Condition Device Processing Time s Unexecuted CICR ON gt ON 0 25 Executed Changed OFF gt ON OFF gt 0N Unexecuted EI ON gt 0N Changed OFF gt 0N OFF gt 0N e M Unexecuted D E poo 0 32 Executed Changed ON gt 0FF ON gt 0FF Unexecuted sid i OFF gt 0FF Executed Changed ON gt OFF ON gt 0FF Executed E M Unexecuted Output instruction RST OFF gt 0FF ON gt 0
103. hen M9119 is on interrupt overrides FROM TO instruction When an interrupt occurs during execution of the FROM DFRO TO DTO instruction the FROM DFRO TO DTO instruction execution is suspended and the corresponding interrupt program is run When M9119 is turned on the FROM DFRO TO DTO instruction cannot be used in an interrupt program e Relevant interrupts are 10 to 15 112 113 and 129 to 131 7 COMMUNICATION WITH SPECIAL MODULE SPECIAL BLOCK MELSEC A 7 2 Writing 1 or 2 word data to the special module special block TO TOP DTO DTOP Carry Error Flag Flag M9010 M9011 Available Device Specification n1 ojo i I olo T jojojo Jofolololo oljol fojo DER ooo The digit specification of the TO instruction is K1 to K4 The digit specification of the DTO instruction is K1 to K8 When K or H is specified at the setting range is HO to HFFFF or K 32768 to K32767 Instruction symbols in parentheses Write commands TO DTO Set data Position of special module special n1 block counted from A1FXCPU 0 to 7 Head address of special module n2 special block to which data is to be n3 written Device number of A1FXCPU which l stores data to be written ns Number of data to be written Functions Writes n3 point data in the devices number starting from the one specified at to the addresses beginning with the one specifie
104. ide setting range LINK RUN LED flickers 1 BCD conversion result exceeded specified range 9999 or 99999999 2 Setting in excess of specified device range made operation inexecutable 3 File registers used in program without file register capacity being set 1 Interrupt INT instruction used in microcomputer program 2 CPU misoperated due to noise etc 3 CPU hardware fault 1 Battery voltage dropped below specified level 2 Battery not connected 1 Read the error step with the peripheral and check and correct the FROM TO instruction in that step with the peripheral 2 Switch on power of special module Switch on power of extension module which supplies power to special block 1 Correct the link setting program 1 Read the error step with the peripheral and check and correct the program in that step Check device setting range BCD conversion value etc 1 Remove INT instruction as it cannot be used in microcomputer program 2 Eliminate noise 3 Change CPU 1 Change battery 2 Connect battery when built in RAM memory or power failure compensation is used APPENDICES MELSEC A APPENDICES Appendix 1 General Specifications Table 1 1 lists the general specifications of the A1FXCPU used independently and Table 1 2 lists those of the A1FXCPU used with the FX series Table 1 1 General Specifications of the A1FXCPU Used Independently stem o Specification
105. ile it is on f Preset command M9152 M9172 1 Turn this signal on when writing the data of the preset value storing special registers D9152 D91543 D9162 D9163 as a preset value 2 The preset command is valid on its leading edge OFF to ON Preset cannot be made if it remains on g Down count command M9153 M9173 1 Turn this signal on when performing down counting in the 1 phase mode of the pulse input system 2 Up counting is performed when the down count command is off 3 In the 2 phase mode of the pulse input system ON OFF of the down count command is invalid h Count enable M9154 M9174 1 Turn this signal on when performing the count operation of the high speed counter i Present value read request M9155 M9175 1 Turn this signal on when storing the present value of the counter into the present value storing special registers D9155 D9156 D9165 D9166 2 The present value read request is made valid when it turns from off to on leading edge j External preset detection reset command M9156 M9176 1 Turn this signal on when resetting turning off the external preset request detection signal M9150 M9170 2 The external preset detection reset command is valid while it is on k Ring counter setting M9157 M9177 1 Turn this signal on when executing the ring counter function Refer to Section 5 4 5 for full information on the ring counter function 5 FUNCTIONS MELSEC A I Counting speed
106. ings of parts Maintenance and inspection Troubleshooting Special relays special registers Refer to ACPU QCPU A A mode programming manuals for the instructions needed for devices and programming of the A1FXCPU and to GX Developer operating manuals for peripheral operation to be performed for programming A1FXCPU Manuals Type A1FXCPU CPU module user s manual Setup A5 size included in the packing Type A1FXCPU CPU module user s manual Function description A4 size optional Type A1FXCPU CPU module user s manual Maintenance A5 size optional Operation Sequence in Time Series Product check i Installation Connection el Hardware setting o gt c I Single module test Function description Programming ee K I Operation O c 2 shooting Maintenance and inspection Q m O a 2 EN xx Relevant Manuals ACPU QCPU A A mode programming manuals GX Developer operating manuals Basics common instructions About This Manuals The following product manuals are available Please use this table as a reference to request the appropriate manual as necessary Related Manuals Manual No Manual Name Model Code Type A1FXCPU module user s manual Setup Provides the specifications installation wiring and other information of the module for use
107. ints 1024 DO to 1023 2 PERFORMANCE MELSEC A Table 2 1 Performance List Continued e mn Max 4096 RO to 4095 2 A0 A1 2 V 2 File register R points Pointer P points 256 PO to 255 Interrupt pointer I points 11 10 to 15 112 113 129 to 131 Special relay M points 256 ETT o to 9255 Special register D points 256 256 D9000 to 9255 to 9255 Number of comment points ae p Max 3648 in increments of 64 points points S Watchdog timer error memory error CPU error I O error battery error Self diagnostic function ce etc Operation mode at error occurrence mode at error occurrence Stop or continue selected or continue selected Output mode switching at the time of STOP Before STOP operation status re output or output after operation to RUN execution is selected Year month day hour minute second day of the week automatic judgment of leap year Clock function Accuracy 3 2 to 3 5s TYP 2 1s d at 0 C 3 4 to 5 3s TYP 2 1s d at 25 C 13 4 to 3 6s TYP 3 28 d at 55 C Permissible instantaneous power failure period ms Outline dimensions mm inch 130 5 12 W x 90 3 55 H x 87 3 43 D Weight kg Ib 0 56 1 24 2 PERFORMANCE MELSEC A 2 1 2 Overview of operation processing This section provides the overview of processing from power on of the A1FXCPU to run of the sequence program
108. ion Link range pattern 1 A1FXCPU BO to B1F Sation FX2n 48ET WO to W3 number 1 Link range pattern 1 B40 to B5F W10 to W13 The following table lists the link parameter setting items and set data D9176 Corresponding station number Pegi da D9177 Numberoflocalstations 1 Do178 Refreshrange 1 D9179 Numberofretries 5 D9180 monitortime 2 5 FUNCTIONS Master station program example M9038 0 MOV A D9176 Sets corresponding station number 0 K E MOV 1 D9177 Sets number of local stations 1 K p MOV 1 D9178 Sets refresh range pattern 1 K B MOV 5 D9179 Sets number of retries 5 K f mov 20 DABO Sets monitor time 20 CIRCUIT END Local station program example M9038 K 0 E MOV 1 D9176 Sets corresponding station number 1 CIRCUIT END 5 12 5 FUNCTIONS MELSEC A 5 2 6 Checking for errors in simple inter PLC link Whether simple inter PLC link is normal or abnormal can be checked by the special relays and special registers for simple inter PLC link 1 Error checking special relays Table 5 4 lists the special relays designed to check for errors at other stations in simple inter PLC link Table 5 4 Special Relays for Simple Inter PLC Link Normal Abnormal de Usability Judgment Master Local Abnormal station station Data transmission sequence error master station O OFF ON o mo192 Emo
109. ion PAUSE This function stops operation while holding the outputs Y Either of the following methods may be used to put the CPU in the PAUSE mode e Remote PAUSE contact set in the parameter e Remote PAUSE from the peripheral Status latch This function stores the contents of all devices into the status latch area of the A1FXCPU when the status latch condition is satisfied STRA instruction is executed e This function can be used to check the statuses of all devices of the A1FXCPU if an error occurred in the sequence program e The contents of the devices stored in the status latch area can be monitored with the peripheral e This function samples the operating statuses of the specified devices at specified Sampling trace intervals and stores them into the sampling trace area e This function can be used to check the progress of statuses of the error factor devices at scans specified time intervals if an error occurs in the sequence program e Data stored in the sampling trace area can be monitored with the peripheral Offline switch e This function can separate devices Y M L F B used for OUT instructions from the operation processing of the sequence program e This function can be used to switch on off the OUT instruction devices when the system is started up ERROR LED priority e Setting of whether the ERROR LED is lit or not at error occurrence setting Clock e This function executes clock operation in the A1FXCPU e Thi
110. irection Y axis Sets running frequency 30kHz Y axis Sets acceleration deceleration time 1 sec Y axis Sets output pulse count 1500000 Y axis Switches on simultaneous pulse output start signal Switches off restart signal X002D M9143 M9144 120 HN gt i S M43 Accepts stop command M43 126 SET M44 Switches on restart signal Switches on simultaneous SET W134 deceleration to stop signal X002E Y A Ps was Accepts restart command M45 M42 M44 M9143 M9144 X002D 1353H m km PLS M46 Restart command M46 144 D D9143 D9136 D9143 Sets output pulse count for restart X axis D D9148 D9138 D9148 Sets output pulse count for restart Y axis SET M9133 Switches on pulse output start signal restart RST M44 Switches off restart signal M9133 M9143 M9144 2 i Switches off simultaneous pulse output sig di RST M9133 H nal when X and Y axis pulse outputs start M9134 M9143 M9144 177 RST CIRCUIT END M9134 H Switches off simultaneous deceleration to stop signal when X and Y axis pulse out puts stop 5 FUNCTIONS MELSEC A 5 4 High Speed Counter Function 1 High speed counter function Two encoders may be connected to count up to 60kpps pulses input When the set value matches the count value an interrupt program 112 113 can be executed A1FXCPU 2 Counter function The following counters can be used for the high speed counter function Name Description Change
111. itsubishi or that admitted not to be so by the user 2 Onerous repair term after discontinuation of production 1 Mitsubishi shall accept onerous product repairs for seven 7 years after production of the product is discontinued Discontinuation of production shall be notified with Mitsubishi Technical Bulletins etc 2 Product supply including repair parts is not available after production is discontinued 3 Overseas service Overseas repairs shall be accepted by Mitsubishi s local overseas FA Center Note that the repair conditions at each FA Center may differ 4 Exclusion of loss in opportunity and secondary loss from warranty liability Regardless of the gratis warranty term Mitsubishi shall not be liable for compensation of damages caused by any cause found not to be the responsibility of Mitsubishi loss in opportunity lost profits incurred to the user by Failures of Mitsubishi products special damages and secondary damages whether foreseeable or not compensation for accidents and compensation for damages to products other than Mitsubishi products replacement by the user maintenance of on site equipment start up test run and other tasks 5 Changes in product specifications The specifications given in the catalogs manuals or technical documents are subject to change without prior notice 6 Product application 1 In using the Mitsubishi MELSEC programmable controller the usage conditions shall be that the applicatio
112. ity basis R ASSIGNMENT 6 O NUMBER ASSIG MELSEC A 6 O NUMBER ASSIGNMENT This chapter describes I O number assignment made to transfer data between the A1FXCPU and extension modules extension blocks 6 1 What Are I O Numbers Inputs X are used to import data from the extension modules extension blocks to the A1FXCPU and outputs Y are used to output data from the A1FXCPU to the extension modules extension blocks IO numbers are addresses of the inputs outputs built in the A1FXCPU and the extension modules extension blocks The number of input output points that may be controlled by the A1FXCPU is 242 built in A1FXCPU 14 input points 4 output points extension modules extension blocks 224 points However one special module or special block occupies 8 points Hence when special modules special blocks are used the number of points available for extension modules extension blocks is found by 242 points 8 x number of special modules special blocks e The A1FXCPU contains 14 input points and 4 output points and occupies X0 to XD as inputs and Y10 to Y13 as outputs Therefore extension modules extension blocks use X Y20 to X YFF REMARKS The number of I O device points indicates the number of device points sfor which programming can be done with inputs X and outputs Y 6 O NUMBER ASSIGNMENT MELSEC A 6 2 I O Number Assignment When switched on or reset by the RUN STOP switch the A1FXCPU
113. ium batteries make sure to treat them based on the transport regulations Refer to the A1FXCPU User s Manual Setup for details of the controlled models A 4 Revisions The manual number is noted at the lower left of the back cover Print Date_ Manual Number Feb 1998 SH NA 4002 A _ First edition Dec 2005 SH NA 4002 B Partial correction SAFETY PRECAUTIONS Manual Makeup Related Manuals CONTENTS Section 2 2 1 2 2 2 2 3 2 2 7 2 8 3 2 2 3 3 5 1 5 3 5 Appendix 4 1 Appendix 4 2 Addition WARRANTY Deletion Appendix 2 2 poe 2006 SH NA 4002 C Partial correction Section2 1 5 2 1 6 Appendix 4 1 Appendix 4 2 H NA 4002 D PE a GGGaa O correction EN 2 8 This manual confers no industrial property rights or any rights of any other kind nor does it confer any patent licenses Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual O 1998 Mitsubishi Electric Corporation Manual Makeup There are three different manuals related to the A1FXCPU setup function description and maintenance manuals Type A1FXCPU Type A1FXCPU Type A1FXCPU CPU module CPU module CPU module user s manual user s manual user s manual Setup Function description Maintenance A5 size included A4 size optional A5 size optiona
114. l in the packing 1 A1FXCPU user s manual Setup This manual provides procedures from product and accessory checkup to installation and wiring to be followed after you have purchased the A1FXCPU and unpacked the package The setup manual describes the following items A1FXCPU performances CPU section power supply section built in functions Names of parts Settings of parts hardware settings YO number assignment EMC Directive Low Voltage Directive Installation of A1FXCPU External wiring Outline dimension drawings 2 A1FXCPU user s manual Function description This manual includes the explanation data setting and programming of the built in functions added to the A1FXCPU I O number assignment needed for I O control methods of communication with special modules special blocks error codes and other information The function description manual describes the following items System configuration Performances of A1FXCPU CPU section power supply section built in functions Built in functions of A1FXCPU simple inter PLC link simple positioning high speed counter external interrupt YO number assignment Communication with special modules special blocks Error codes Special relays special registers Outline dimension drawings 3 A1FXCPU user s manual Maintenance This manual explains the inspection of a system using the A1FXCPU and troubleshooting at error occurrence Names of parts Sett
115. lation The capacity of the 24VDC service power supply depends on the model lt 24VDC service power supply capacity gt Model PowerSupplyCapaciyi Remarks A1FXCPU 300mA FX2n 32E 250mA Power supplied to extension blocks FX2n 48E 460mA Extension blocks designed for input and output differ in current consumption Current consumption less than the total capacity indicates that extension blocks can be connected Remaining power may be used for sensors output loads etc Extension block for FX2N FXon output 8 points 75mA for 24 or more points Total service power Extension block supply capacity for FX2N FXoN 300mA input 250mA or 460mA 8 points 50mA 0 remaining power for sensors and loads If the result is less than 0 the capacity is short Use an extension module midway Connection example A1FXCPU FXon 8EX FX2n 16EX FXon 8EYR 300mA 50mA x 1 50mA x2 OMA x 1 150mA 0 may be connected Remaining 24VDC service power Because of less than 24 output points 2 PERFORMANCE MELSEC A 3 Quick calculation table The following tables represent capacity formulas with specific values They can be used to determine whether extension blocks may be connected or not and to find the remaining 24VDC service power A1FXCPU When the FXon 3A is not used Example When 16 input points and 24 mA output points are added 24VDC 75 service current is 125mA or less 150 22 175 125 5 200 150 8 30
116. le Special module Special module Set n1 0 Set n1 1 7 COMMUNICATION WITH SPECIAL MODULE SPECIAL BLOCK Program Examples MELSEC A The following program writes 4603H to KO of the buffer memory of the special module special block located in the second position from the A1FXCPU when X20 is switched on X020 0 TO 0001 0 4603 1 DTO The following program writes 2 point data starting from the one specified at DO to KO of the buffer memory of the special module special block located in the second position from the A1FXCPU when X20 is switched on X020 H K 0 DTO 0001 0 DO REMARKS During execution of the FROM DFRO TO DTO instruction interrupt program execution control can be exercised by M9119 e When M9119 is off FROM TO instruction overrides interrupt While the FROM DFRO TO DTO instruction is being executed interrupt is disabled and an interrupt program is not run if an interrupt occurs For any interrupt that occurred during execution of the FROM DFRO TO DTO instruction the corresponding interrupt program is run after completion of the FROM DFRO TO DTO instruction execution When M9119 is off the FROM DFRO TO DTO instruction can be used in an interrupt program When M9119 is on interrupt overrides FROM TO instruction When an interrupt occurs during execution of the FROM DFRO TO DTO instruction the FROM DFRO TO DTO instruction execution is suspended and the corresponding interr
117. lock 0 1s ois 1s clock 2s clock 1min clock Always ON Always OFF ON for one scan only after the RUN started RUN flag OFF for one scan only after the RUN started PAUSE enable coil PAUSE disable PAUSE enable PAUSE status contact Not in PAUSE status In PAUSE status 0 1s 0 2s 1s 2s and 1min clocks are generated These are not turned ON OFF at each scan but turned ON OFF after the specified time interval even during a scan Starts from OFF when the power supply is turned ON or reset Used for the initialization or as a dummy contact by application instructions in the sequence program The M9036 and M9037 are turned ON and OFF regardless of the key switch status on the CPU front panel while the M9038 and M9039 change depending on the key switch status OFF when the key switch is set at STOP When the key switch is not set at STOP the M9038 is turned ON for one scan only and the M9039 is turned OFF for one scan only When the RUN key switch is set at the PAUSE position or the remote PAUSE contact is ON if the M9040 is ON it will be in the PAUSE status and the M9041 will be turned ON Stop status contact Not in STOP status In STOP status Turned ON when the RUN key switch is set at the STOP position Sampling trace completed Sampling trace in progress ON Sampling trace completed After the STRA instruction is executed this is t
118. n Set value lt count value M9147 M9167 output Comparison result Set value count value M9148 M9168 Set value gt count value M9149 M9169 CH 1 X8 Preset CH 2 X9 CH 1 X6 Disable latch trigger CH 2 X7 Interrupt to CH 1 112 Coincidence output output CH 2 113 Countalbe Counting Speed Counting Speed Selection Setting Rise fall time 1 phase input 2 phase input 1 phase input 2 phase input t 2 5us or less 60kpps 60kpps 10kpps 7kpps i e il let t 25us or less 10kpps 10kpps 1kpps 700pps t 500us orless 500pps 250pps 2 PERFORMANCE MELSEC A 2 5 2 Interface specifications Table 2 13 gives the high speed counter function interface specification list of the A1FXCPU Table 2 13 Specification List Specifications External input Counter input Number of input points 4 points X6 to 9 4 points XA to D do i Preset 2 channelsx1 point i Built in function A a Counter input 2 channelsx2 points Disable latch trigger 2 channelsx1 point Isolation method Photocoupler isolation Rated input voltage 24VDC 24VDC Rated input current Operating voltage range 21 6 to 26 4VDC ripple ratio within 5 Max number of simultaneous 100 simultaneous ON input points ON voltage ON current 18V 3 5MA or more 19V 5 5mA or more OFF e current 3V 0 7mA or less 3V 0 25mA or less Input resistance 2 70 OFE gt 0N 60kpps or less Response time ON OFF 60kpps or less 10 AEREI common 2 terminals 3 APS Commo
119. n method All points with independent commons Common to XO to 9 Internal circuit i aa Terminal os External switch Number Name Number Name ER Internal B14 Photocoupler B12 Le as Ei leer sr Indicates the terminal which is not used with this function 2 25 Photocoupler 2 PERFORMANCE MELSEC A 2 6 Performance of the External Interrupt Function This section provides the external interrupt function performance of the A1FXCPU 2 6 1 External interrupt function performance list Table 2 15 gives the external interrupt function performance list of the A1FXCPU Table 2 15 Performance List tem 535353 Performance Number of interrupt points e XO to X5 External inputs you can select interrupt Interrupt factor execution on leading trailing edge for each point 10 XO 11 X1 12 X2 13 X3 14 X4 15 X5 2 PERFORMANCE MELSEC A 2 6 2 Interface specifications Table 2 16 gives the interrupt function interface specification list of the A1FXCPU Table 2 16 Specification List tem O Specifications Number of input points 6 points X0 to 5 Isolation method Photocoupler isolation Rated input voltage 24VDC Rated input current Operating voltage range 21 6 to 26 4VDC ae ratio within 5 Max number of simultaneous j 100 simultaneous ON input points ON voltage ON current 18V 3 5mA or more OFF voltage OFF current 3V 0 7mA or le
120. n will not lead to a major accident even if any problem or fault should occur in the programmable controller device and that backup and fail safe functions are systematically provided outside of the device for any problem or fault 2 The Mitsubishi programmable controller has been designed and manufactured for applications in general industries etc Thus applications in which the public could be affected such as in nuclear power plants and other power plants operated by respective power companies and applications in which a special quality assurance system is required such as for Railway companies or Public service purposes shall be excluded from the programmable controller applications In addition applications in which human life or property that could be greatly affected such as in aircraft medical applications incineration and fuel devices manned transportation equipment for recreation and amusement and safety devices shall also be excluded from the programmable controller range of applications However in certain cases some applications may be possible providing the user consults their local Mitsubishi representative outlining the special requirements of the project and providing that all parties concerned agree to the special circumstances solely at the users discretion SH NA 4002 D Type A1FXCPU Module User s Manual Function description mopEL A1FXCPU U E KINOU MODEL 13JL59 SH NA 4002 D 0707 MEE
121. nt Timing Mode Selection System Counts a pulse on leading edge of phase A Up counting Phase B and M9153 M9173 are off 1 phase multiplied by 1 Counts a pulse on trailing edge of phase A Down counting i Phase B or M9153 M9173 is on Counts a pulse on leading and trailing Up counting edges of phase A 1 phase Phase B and M9153 M9173 are off multiplied by 2 Counts a pulse on leading and trailing Down counting edges of phase A Phase B or M9153 M9173 is on Counts a pulse on leading edge of phase A Up counting Count increases in response to phase 2 phase difference between phases A and B multiplied by 1 Counts a pulse on trailing edge of phase A Down counting Count decreases in response to phase difference between phases A and B Counts a pulse on leading and trailing edges of phase A Up counting Count increases in response to phase 2 phase difference between phases A and B multiplied by 2 Counts a pulse on leading and trailing i edges of phase A Down counting Count decreases in response to phase difference between phases A and B Counts a pulse on leading and trailing edges of phases A and B Up counting Count increases in response to phase 2 phase difference between phases A and B multiplied by 4 Counts a pulse on leading and trailing edges of phases A and B Down counting p Count decreases in response to phase difference between phases A and B 5 FUNCTIONS
122. o turn on or off An external monitoring circuit should be provided to monitor output signals which may lead to a serious accident Designing Instructions lt DANGER e If a current higher than the rating or an overcurrent due to a load short circuit etc kept on flowing for a long time in the outputs fuming or combustion may occur To prevent this provide an external safety circuit such as a fuse e Configure up a circuit so that the external supply power is switched on after the power of the PLC is switched on If the external supply power is switched on first an accident may occur due to misoutput or misoperation e When a communication fault occurs in inter PLC link the faulty station retains the data prior to the occurrence of the communication fault Using communication status data make up an interlock circuit in the sequence program to ensure that the system operates safely Not doing so may cause an accident due to misoutput or misoperation For an interlock circuit example how to check a faulty station and operating status at communication fault occurrence refer to Section 5 2 in this manual e Do not bundle control or communication cables with the main circuit power or other lines or lay them near these lines As a guideline separate the cables at least 100mm 3 94 inch A failure to do so can cause misoperation due to noise When controlling items like lamp load heater or solenoid valve using an output module l
123. ode Output 16 characters When M9049 is OFF the characters up to the NUL 00H code are sent to the output When the M9049 is ON 16 characters of ASCII code are sent to the output CHG instruction execution disable Enable Disable Turn it ON to disable executing the CHG instruction Turn it ON when the program transfer is requested and it is automatically turned OFF when the transfer is finished SEG instruction switch STEP RUN flag 7 segment display Refresh of the I O part Step RUN is not in progress Step RUN is in progress Refresh of the I O part instruction is executed when the M9052 is ON 7 SEG display instruction is executed when the M9052 is OFF Turned ON when the RUN switch is at step RUN Status latch complete flag Not finished Finished Turned ON when the status latch is completed Turned OFF by a reset instruction Split processing execution detect Split processing request flag Split processing is not in progress Split processing is in progress Batch processing Split processing Turned ON while the instructions to the AD57 S1 and AD58 are processed by split processing and turned OFF when the execution is finished not in split processing For a instruction to the AD57 S1 and AD58 which requires a long processing time the instruction is split and processed by turning ON the M9066 because the scan time is substantially extended
124. of repair parts shall not exceed the gratis warranty term before repairs Gratis Warranty Range 1 The range shall be limited to normal use within the usage state usage methods and usage environment etc which follow the conditions and precautions etc given in the instruction manual user s manual and caution labels on the product 2 Even within the gratis warranty term repairs shall be charged for in the following cases 1 Failure occurring from inappropriate storage or handling carelessness or negligence by the user Failure caused by the user s hardware or software design 2 Failure caused by unapproved modifications etc to the product by the user 3 When the Mitsubishi product is assembled into a user s device Failure that could have been avoided if functions or structures judged as necessary in the legal safety measures the user s device is subject to or as necessary by industry standards had been provided 4 Failure that could have been avoided if consumable parts battery backlight fuse etc designated in the instruction manual had been correctly serviced or replaced 5 Failure caused by external irresistible forces such as fires or abnormal voltages and Failure caused by force majeure such as earthquakes lightning wind and water damage 6 Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi 7 Any other failure found not to be the responsibility of M
125. of the A1FXCPU Option IB 66839 13JL57 Type A1FXCPU module user s manual Maintenance Provides maintenance inspection and troubleshooting procedures of the module for use of the A1FXCPU Option SH 4003 13JL58 ACPU QCPU A A mode Programming Manual Fundamentals Offers programming methods device names parameters program types memory area makeup etc needed to write programs Option IB 66249 134740 ACPU QCPU A A mode Programming Manual Common Instruction Programming ManualGives how to use sequence basic and application instructions and microcomputer programs Option IB 66250 134741 Type MELSAP Il Programming Manual Provides specifications functions instructions programming methods etc needed when the MELSAP II is used for programming with SFC programs Option IB 66361 13JF40 POINT For the FX series refer to the manual you use CONTENTS About the Manuals 1 INTRODUCTION 1111 1 1 to 1 5 1 1 Features iii 1 1 1 2 Functions Built in the ATFXCPU 0000 1 2 1 3 Instructions for Use of the ATFXCPU i 1 3 1 4 Packing Listini 1 5 2 PERFORMANCE mm 2 1 to 2 29 2 1 Performance of the CPU Section 2 1 2 1 1 CPU section performance liste 2 1 2 1 2 Overview of operation processing AA 2 3 2 1 3 Operation processing in RUN STOP and PAUSE modes tini eee 2 4 2 1 4 Operation processing at occurrence of an instantaneous power failure srr 2 5 2 1 5 Self diagnosis e 2 6 2 1 6 Parameter s
126. ollowing steps e Step where there is a device other than D9176 D9180 e Step where there is an instruction other than LD M9038 and MOV instruction in the link setting program Use special register Start step 0 with LD M9038 Use MOV instruction D9176 to D9180 M9038 i Sets corresponding station 0 i MOV KO D9176 number station number of host station B MOV K1 D9177 H Sets number of local stations p MOV K1 D9178 H Sets refresh range F MOV K5 D9179 H Sets number of retries MOV K20 D9180 Sets monitor time c When the link setting program is proper the values set are stored into D9173 D9175 e D9173 Corresponding station number setting status e D9174 Local station count setting status e D9175 Refresh range setting status 1 The values within the specified ranges should be set to D9176 D9180 If any of the D9176 D9180 values in link parameters is outside the specified range LINK PARAM ERROR occurs and simple inter PLC link is not made However if only the station numbers are proper simple inter PLC link is performed with default parameter values even when LINK PARAM ERROR has occurred 5 FUNCTIONS MELSEC A 2 Link parameter setting program example The link setting programs shown below are designed for simple inter PLC link in the following system Number of retries 5 times Monitor time 200ms Master station A1FXCPU Sation FX2N 48ET number 0 Local stat
127. olors can be displayed Interface for connection of A1FXCPU and modem Modem interface module A6TEL May be connected to A1FXCPU in hand held method Battery AGBAT RAM memory backup mounted on A1FXCPU er 4 NAMES OF PARTS AND THEIR SETTINGS MELSEC A 4 NAMES OF PARTS AND THEIR SETTINGS 4 1 Names of Parts Front view 1 5 6 7 8 9 10 11 PUT on 8888 2 i dr ke MITSUBISHI ossee pres 4 __ t MELSEC A4FXcru TTD do 13 Left side view and the front view without cover 22 15 16 MITSUBISHI 21 RESET 7 POWER CD MRUN RUN RUNO SD O 0 le STOP ERROR OD DRD t CLR MELSEC A1FXcru 20 19 Noj Name O Application Mounting hole For M4 screw Pear shaped hole used to mount this module to a panel such as a control box POWER LED 5VDC power indicator LED Indicates that the RUN STOP switch is in the RUN position and sequence program operation is being executed Remains on if an error defined to continue sequence program operation occurs Turns off when e 100 to 240VAC is not supplied to the A1FXCPU e The RUN STOP switch is in the STOP position 3 RUN LED e Remote STOP is performed e Remote PAUSE is performed e Flicker Flickers when e The self diagnostic function detected an error defined to stop sequence program operation e Latch clear operation is performed 4 NAMES OF PART
128. on to execute presetting When the present value is read during execution of presetting the ring count value or preset value is read 6 The coincidence signal reset command is switched on to reset the count value coincidence signal Keep the count value coincidence signal M9148 M9168 off until the second next presetting If the count value coincidence signal remains on the next presetting is not performed 3 Counting range The counting range of the ring counter function differs according to the relationships between the preset value ring count value present value and counting mode up down count a If preset value lt present value lt ring count value The following operation is performed when the ring counter function is executed at the preset value of 0 ring count value of 2000 and present value of 500 1 In up counting the present value 0 turns to the preset value as soon as it is counted up to the ring count value gi to 1998 1999 2000 0 A T ERE 2 In down counting the present value turns to the maximum value 16777215 when it is counted down to the preset value 0 Then when the present value 0 is counted down from the maximum value to the ring count value it turns to the preset value 16777215 to 2002 2001 2000 0 16777215 FANTU UUL 5 FUNCTIONS MELSEC A b If preset value lt ring count value lt present value The following operation is performed when the ring counter function
129. on to the L CLR position again Latch clear is then completed and the RUN LED goes off To cancel the latch clear operation at any point move the RUN STOP switch to the RUN position to place the A1FXCPU in the RUN mode REMARKS Latch clear may also be done by GPP function operation For the operation method refer to the GPP Function Operating Manual 5 FUNCTIONS MELSEC A 5 FUNCTIONS This chapter describes the functions of the A1FXCPU 5 1 Function List The functions common to the MELSEC A series and available for the A1FXCPU are listed in Table 5 1 and the built in functions added to the A1FXCPU are indicated in Table 5 2 For full information on the functions common to the MELSEC A series refer to the ACPU Programming Manual Basics Table 5 1 Functions Common to the MELSEC A Series Function Description Constant scan This function executes the sequence program at specified intervals independently of the sequence program scan time Constant scan setting 1 to 200 10 to 2000ms This function retains device contents when the A1FXCPU is switched off or is reset Latch power failure compensation by the RESET switch or if an instantaneous power failure of longer than 10ms occurs Devices that can be latched L B T C D W default L only Remote RUN STOP This function controls RUN STOP of the CPU from an external device e g peripheral external input when the RUN STOP switch is in the RUN posit
130. or step Step number where the error occurred The step number where error 83 occurred in the SFC program is stored as a BIN value 0 is stored when error 80 or 81 occurs When error 82 occurs the step number of the block startup is stored Error migration Error sequence step Migration condition number where the error occurred Sequence step number where the error occurred The migration condition number where error 83 occurred in the SFC program is stored as a BIN value 0 is stored when error 80 81 or 82 occurred In the migration condition or step where error 83 occurred in the SFC program the order of the sequence step n th step in the migration condition or operation output where the error occurred is stored as a BIN value Status latch PC communication check Status latch step Data check of the The number of the step which was being executed at the time of the status latch is stored as a BIN code e Used for the self loopback check D9072 computer link Number of empty areas of Number of available e The number of available spaces in the communication request D9081 the communication spaces of the register area to the MNET MINI S3 is stored a maximum of 32 request register area communication request register area Appendix 23 APPENDICES Number MELSEC A Appendix Table 4 2 List of Special Registers Continued Time check value setting register Desc
131. or when an external interrupt factor occurs REMARKS The following functions cannot be used in the A1FXCPU e Step run e PAUSE by RUN STOP switch e I O module change in online mode 5 FUNCTIONS MELSEC A 5 2 Simple Inter PLC Link 1 Simple inter PLC link Simple inter PLC link is a network which automatically makes data communication between up to eight A1FXCPU FX2n and FXon series modules connected On this network the data of the devices set in the refresh range are transferred between the PLCs and those devices can be monitored by all PLCs Master station Local station Local station A1FXCPU A1FXCPU eee A1FXCPU AS Shielded twisted pair cable 2 Classification of stations connected to simple inter PLC link The A1FXCPU FX2n and FXon series modules connected to simple inter PLC link are classified into master and local stations a The master station is a controlling module for simple inter PLC link One master station is always required in a simple inter PLC link system Set the following link parameters to the master station in the sequence program link setting program refer to Section 5 2 4 e Corresponding station number set 0 e Number of local stations e Refresh range pattern 0 to 2 e Number of retries e Monitor time b Local stations are modules which make data communication using the link parameters of the master station Set only the corresponding station numbers station numbers of host sta
132. p a circuit to provide an interlock stop external equipment operation when the output Y used as an interlock turns off The output Y turns off when the A1FXCPU is reset or an operation error occurs Sequence program M9036 Keeps Y20 on roH AEXCPU While ATFXCPU is running 24 Extension block 24 Stop switch Positioning module FX 10GM Stop 2 MC The buffer memories of the above special modules and special block cannot be initialized by the RESET switch of the A1FXCPU Switch power off then on again or use a sequence program to initialize them 6 Type setting at startup of the peripheral When using a peripheral for the A1FXCPU programming start up the peripheral with the PLC type A1FX When using the SW3NX IVD GPPA or earlier start up with A2 7 FX series peripheral unavailable For the A1FXCPU the A series peripheral is used to perform programming with the A series instructions The FX series peripheral cannot be used for programming 1 4 1 INTRODUCTION MELSEC A 1 4 Packing List After unpacking confirm that there are the following products Quantity A1FXCPU module 32 pin connector Battery AGBAT Terminal resistor 1100 1 2W I O label Link station number label 2 PERFORMANCE MELSEC A 2 PERFORMANCE 2 1 Performance of the CPU Section This section provides the CPU section performance of the A1FXCPU 2 1 1 CPU section
133. p frequency Hz o 0to 60000 X axis D9141 Running frequency Hz 1 1to60000 Era Acceleration deceleration time lms 1 1 to 32767 D9143 0 to Number of output pulses pulse D9144 16777215 Dorso ote time when PULSE SIGN Dorso 1000 0 to 32767 ae is selected D9145 Start stop Start stop frequency o oto6000 to 60000 D9146 Running frequency ae 1 to 60000 D9147 Acceleration deceleration time lms 1 1 to 32767 Y axis D9148 0 to D9148 Number of output pulses pulse D9149 16777215 Setup time when PULSE SIGN D9151 1000 O to 32767 method is selected O Must be set Need not be set A Must be set only when PULSE SIGN method is chosen REMARKS 1 The following diagram shows the relationships between start stop frequency running frequency and acceleration deceleration time set in Table 5 8 The terms within parentheses are used for the A series positioning modules Frequency speed A Running frequency positioning speed Start stop frequency _ bias speed Time Acceleration Deceleration time time 2 The number of output pulses in Table 5 8 is the positioning address travel when used for the MELSEC A series positioning modules 5 FUNCTIONS MELSEC A a Start stop frequency D9140 D9145 1 Set the frequency used when pulse output is started and stopped Speed is increased decreased from to the specified start stop frequency to from the
134. pair cable Furukawa Electric 2 D KPEV SB 0 5x3P 0 5mm 2 pair cable IPEV SB 0 3mm x2P 0 3mm 2 pair cable Fujikura 5 5 IPEV SB 0 5mm x2P 0 5mm 2 pair cable 2 PERFORMANCE MELSEC A 2 4 Performance of Simple Positioning This section provides the simple positioning performance of the A1FXCPU 2 4 1 Simple positioning performance list Table 2 10 gives the simple positioning performance list of the A1FXCPU Table 2 10 Performance List tem Performance Number of axes controlled 2 axes Number of Capacity positioning data Setting method By sequence program Control unit pulse Positioning system Position control Acceleration deceleration i Automatic trapezoidal acceleration deceleration processing Acceleration deceleration time 1 to 32767 ms Output pulse range 0 to 16777215 pulse Output pulse speed 1 to 60000 pps Starting bias speed 1 to 60000 pps Error indication 1 Special relay Positioning data storage destination Special register 1 For details refer to Section 5 3 4 2 PERFORMANCE MELSEC A 2 4 2 Interface specifications Table 2 11 gives the simple positioning interface specification list of the A1FXCPU Table 2 11 Specification List lem Specifications Number of output points 4 points positioning pulse output 2 axesx2 points Y10 to 13 Output form Transistor open collector output Rated load voltage 5 15 24VDC Operating load voltage range 4 75
135. ponse in simple inter PLC link When there is no response at the preset count of link scans the other stations judge that the corresponding station is in data transmission sequence error b Retry count setting is required for the master station only It is not needed for local stations Local stations use the retry count set in the master station 5 Monitor time setting a Set the period of time needed to determine that the master or local station is faulty in data transmission between the master and local stations Set any to 5 to 255 50ms to 2550ms in 10ms increments b Monitor time setting is required for the master station only It is not needed for local stations Local stations monitor the response time from the master station in a period twice longer than the monitor time set in the master station 5 FUNCTIONS MELSEC A 5 2 5 Link parameter setting method Set the link parameters for simple inter PLC link in the sequence program link setting program 1 Instructions for link setting program a Write the link setting program under the following conditions If any of the following conditions is not satisfied simple inter PLC link is not performed e Write the link setting program from step 0 e Write LD M9038 at the beginning step 0 of the link setting program e Use MOV instructions to store data into D9176 D9180 The MOVP instruction must not be used b The link parameters end at either of the f
136. pping the reset key switch on the CPU front panel to the reset side For the registers marked by 2 the data is written by the sequence program For the registers marked by 3 the data is written by the test mode of the peripheral device For the registers marked by 4 it is cleared only when the power is turned ON from OFF Appendix 25 APPENDICES MELSEC A MEMO Appendix 26 WARRANTY Please confirm the following product warranty details before using this product 1 Gratis Warranty Term and Gratis Warranty Range If any faults or defects hereinafter Failure found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company However if repairs are required onsite at domestic or overseas location expenses to send an engineer will be solely at the customer s discretion Mitsubishi shall not be held responsible for any re commissioning maintenance or testing on site that involves replacement of the failed module Gratis Warranty Term The gratis warranty term of the product shall be for one year after the date of purchase or delivery to a designated place Note that after manufacture and shipment from Mitsubishi the maximum distribution period shall be six 6 months and the longest gratis warranty term after manufacturing shall be eighteen 18 months The gratis warranty term
137. processing i i Sequence program Interrupt program i i i A Bi A gt A Time between interrupt input ON and interrupt program execution B Post processing time of interrupt program Indicates the interrupt disable processing time and the interrupt program waits for that period The maximum execution time is listed below E General Data During Ordinary 2 i During Execution of Any Processing of Interrupt from of 112 113 and 129 to 131 Simple Link Peripheral Function Sequence Execution ims execution time of 0 65ms interrupt program corre when moni sponding to any of 112 toring device 113 and 129 to 131 128 bytes When one of the above processings takes place during execution of the other the time marked is the sum of individual periods For example when there is an interrupt input during general data processing the time marked is 0 5ms 1 5ms FUNCTION S FUNCTIONS MELSEC A b Minimum intervals of consecutive identical interrupt inputs The intervals of identical interrupts executed consecutively should be not shorter than the sum of the time between when the interrupt input signal turns on and when the corresponding program is run t1 and the execution time of the interrupt program t2 Times t1 t2 or longer If interrupt signals corresponding to the interrupt program being executed come in their interrupt requests are ignored Interrupt input signals are igno
138. ps below the Battery low specified level and turned OFF when the battery voltage returns to normal Battery low latch Normal This is turned ON when the battery voltage drops below the Battery low specified level and stays ON even if the battery voltage returns to normal Self diagnosis error No error This is turned ON when an error is detected as a result of a self Error occurred diagnosis Annunciator detect Not detected This is turned ON when the OUT F or SET F instruction is Detected executed and turned OFF when the contents of the D9124 becomes 0 Operation error flag No error This is turned ON when a operation error occurs while the Error occurred application instruction is executed and stays ON even if it returns to normal Carry flag Carry OFF This is a carry flag used during the application instruction Carry ON Data memory clear flag No processing When M9046 is ON it clears all data memory except for the ON Clear the output special relays and registers including the area that are latched by the remote RUN from the computer Data memory clear flag OFF No processing When M9017 is ON it clears all data memory except for the ON Clear the output special relays and registers that are not latched by the remote RUN from the computer User timing clock No Relays that repeat ON OFF by a constant scan interval E Starts from OFF when the power supply is turned ON or reset Wee
139. pulse count maximum value Switches on pulse output start signal Accepts forward rotation jog command OFF End of forward rotation jog Accepts reverse rotation jog command OFF End of reverse rotation jog Switches on deceleration to stop signal Switches off pulse output start signal when pulse output starts Switches off deceleration to stop signal when pulse output stops Switches off interlock signal for use during reverse rotation jog operation Switches off interlock signal for use during forward rotation jog operation 5 FUNCTIONS MELSEC A 3 X axis simple positioning program a Motions in simple positioning e Pulse output starts when simple positioning start X25 is turned on At this time the rotation direction is set by rotation direction setting ON OFF of X24 e X24 OFF Forward rotation direction e X24 ON Reverse rotation direction e The axis is decelerated to a stop when the stop command X26 is turned on during pulse output e When the restart command X27 is turned on after deceleration to stop the axis is restarted from the stop position output of remaining pulses e When simple positioning start X25 is turned on after deceleration to stop the specified number of pulses are output to the axis at the stop position Frequency 30000 Simple positioning OFF f start X25 Stop command OFF X26 i Pulse output start M9130 OFE i Restart command X27 OFF
140. r timing Cock Ne Sets the ON OFF interval by the DUTY instruction User timing clock No User timing clock No A User timing clock No Appendix 15 APPENDICES Number MELSEC A Appendix Table 4 1 List of Special Relays Continued Clock data set request Description OFF No processing ON Set request exists Details of contents e After the END instruction is executed during a scan in which the M9025 changes from OFF to ON the clock data stored in D9025 to D9028 is written into the clock device Clock data error OFF No error ON Error occurred ON when an error occurred in the value of the clock data D9025 to D9028 and OFF when there is no error Clock data read request OFF No processing ON Read request When the M9028 is ON the clock data is loaded to D9025 to D9028 as a BCD value Batch processing of data communication request OFF Batch processing is not executed ON Batch processing is executed By turning ON the M9029 from the sequence program the data communication requests which are received during one scan are processed by the END processing of the same scan Batch processing of the data communication requests can be changed to ON OFF during the RUN The default is OFF One data communication request is processed per each END processing in the order the requests are received 0 1s clock 0 05s Jooss 0 2s c
141. raear ll o O Usable Unusable 5 FUNCTIONS MELSEC A a M9183 Data transmission sequence error master station e A flag used by the local station connected to simple inter PLC link to determine whether the master station is normal or abnormal e M9183 turns on when an error occurs in the master station during data transmission sequence execution M9183 turns off when the master station recovers from the error and resumes the data transmission sequence In progress Suspended In progress Recovery Error occurrence Data N transmission 2 sequence OFF A We M9183 Error code is retained D9191 0 Y Error code ds xX 0 Reset by M9192 Error clear e When M9183 has turned on the error definition can be checked with the error code stored in D9191 data transmission error No master station b M9184 to M9190 Data transmission sequence error local station n e A flag used by the master or local station connected to simple inter PLC link to determine whether there is a faulty local station or not e The corresponding special relay turns on when a data transmission sequence error occurs in a local station during data transmission sequence execution It turns off when the local station recovers from the error and resumes the data transmission sequence In progress Suspended In progress Error occurrence Recovery Data N transmission sequence i 1
142. ration error occurred while executing the application instruction the step number where the error occurred is stored in BIN code The contents of the D9011 cannot be updated unless M9011 is cleared by the user program because the storing to D9011 is executed when M9011 changes from OFF to ON 1 0 control method YO control method number The I O control method is returned as the following number 3 Refresh method for both input and output Appendix 20 APPENDICES Number MELSEC A Appendix Table 4 2 List of Special Registers Continued CPU operation status Program number Scan time Description CPU operation status The sequence program being executed is stored as a BIN value Minimum scan time in 10ms unit B15 Details of contents The CPU s operation status is stored in the D9015 as shown in the following diagram B12B11 B8B7 B4B3 BO 1 0 RUI STOP PAUSE 1 STEP RUN Remote RUN STOP by the parameter setting 0 RUN 1 STOP 2 PAUSE 1 Program status O Status other than the one below 1 Executing instruction 0 RUN 1 STOP 2 PAUSE 1 The RUN status stays when changed to PAUSE while the CPU is in RUN status and the M9040 is OFF The sequence program which is currently being executed is stored by the code number as follows 0 ROM 8 E PROM 1 RAM For each END if the scan time is smaller than that of the D9017 the value is stored In oth
143. ration time e Number of output pulses e Setup time when PULSE SIGN method is selected 3 Starting the simple positioning control pulse output start refer to Section 5 3 5 In simple positioning control the X and Y axes can be started independently or simultaneously However linear interpolation of two axes cannot be made Frequency X axis Time Frequency Frequency Frequency X axis Y axis Y axis i Time gt Time i Time ON ON ON M9130 OFF M9140 OFF M9133 OFF At start of X axis At start of Y axis At simultaneous start 4 Checking the simple positioning control pulse output status refer to Section 5 3 6 The simple positioning control status can be checked with the special relays The numbers of output pulses can also be checked with the special registers 5 FUNCTIONS MELSEC A 5 3 1 Instructions for the simple positioning control function Observe the following instructions for executing simple positioning control 1 Use of simple positioning control must be specified The simple positioning control outputs may be used in two different ways simple positioning control and general purpose outputs To carry out simple positioning control the following special relays must be turned on e M9128 Turned on when the X axis is used for simple positioning control e M9138 Turned on when the Y axis is used for simple positioning control When M9128 and M9138 are off the outputs cor
144. red Interrupt input External switch Interrupt program t1 t2 t1 t1 Time from interrupt input to interrupt program execution t2 Interrupt program execution time c Pulse width of interrupt input signal It takes 0 5ms for the interrupt input of the A1FXCPU to turn from OFF to ON Hence the interrupt input may not be accepted if the pulse width of the inter rupt input signal is less than 0 5ms Interrupt input External switch Interrupt detection and pre processing Interrupt program 0 5ms or longer input required 5 FUNCTIONS MELSEC A d Interrupt input priority e The interrupt priority is as follows AE A io _______l High External INIenupt input X0 External interrupt input a External interrupt input 0S O o Ch 1 1 CH 2 Time interrupt 10ms 130 Time interrupt 20ms Low Time interrupt 40ms e When one interrupt occurs during interrupt program execution the interrupt program corresponding to the next interrupt is executed on completion of that interrupt program execution e When two or more interrupts occur during interrupt program execution the interrupt program corresponding to the highest priority interrupt is executed on completion of that interrupt program execution e For example when interrupt inputs corresponding to 15 and 12 take place during execution of the 14 interrupt program 12 interrupt is executed on a prior
145. responding to the axes which are off act as general purpose outputs Refer to Section 5 6 2 Importing the positioning data There are two types of simple positioning data data which is made valid at the END processing of the preset scan and data which is made valid at the start of positioning 3 Simple positioning control in incremental system Simple positioning control is exercised in the incremental system where the number of output pulses travel is specified The number of output pulses can be set between 0 and 16777215 pulses Specify the traveling direction by switching on off the following special relays Refer to Section 5 3 5 e M9129 For X axis OFF for forward rotation direction ON for reverse rotation direction e M9139 For Y axis OFF for forward rotation direction ON for reverse rotation direction 4 Address management Because of the incremental system simple positioning control manages addresses internally The number of output pulses provided after start of pulse output is stored in the present output pulse count storing special registers When making address management as a system the number of pulses travel in the present output pulse count storing special registers should be incremented or decremented in the sequence program to calculate the present value 5 Switching from RUN mode to STOP mode during positioning control During pulse output do not move the RUN STOP switch to the STOP position Doin
146. ription The default value is 10s Details of contents The time check value which is used when the link instruction ZNRD ZNWR for the MELSECNET 10 is executed is stored Setting range 1 to 65535s Setting unit in 1s unit The default value 10s is used when 0 is set Number of special function modules over Number of special function modules over When the number of special function modules exceeds the limit the starting I O number of the last special function module which could be registered is divided by 16 and stored as a BIN value Detailed error number Detailed error number of the self diagnosis The detailed error number of the self diagnosis is stored in BIN code Module with a fuse blown Bit pattern of the modules with a fuse blown in 16 point unit The output module numbers in 16 point unit with a fuse blown is stored as a bit pattern The setting number is stored if it is set by the parameter The fuse blown status of the output modules in the remote station can also be detected 15 14 13 12 11 10 9 Indicates the fuse blown status The I O module number range to be displayed can be selected by switching ON OFF of the M9197 and M9198 Clearing data of the fuse blown module can be executed by turning the M9000 fuse blown OFF I O module verify error Bit pattern of the modules with verify error in 16 point unit When a different I O module which is different from th
147. rned ON the corresponding bit is turned ON Hardware error X0 X20 MINI S3 link error detect X6 X26 MINI S3 link communication error X7 X27 AC DOWN counter Number of AC DOWN times Every time the input voltage drops below 80 of the rated voltage during the operation by the CPU module the value is incremented by one and stored in BIN code Self diagnosis error Self diagnosis error number The error number of the error which occurred during the self diagnosis is stored in BIN code Annunciator detected Error step F number where the external failure occurred Step number where the operation error occurred When one of FO to 2047 is turned ON by OUT F or SET F the F number which was turned ON and detected first is stored in BIN code The D9009 can be cleared by executing the or LEDR instruction If another F number is detected the next number is stored in D9009 when D9009 is cleared When access failed to the module which has the setting of the special module at the transition from STOP to RUN the module number of the special module is stored When a operation error occurred while executing the application instruction the step number where the error occurred is stored in BIN code and the contents of the D9010 is updated every time the operation error occurs after that Error step Step number where the operation error occurred When a ope
148. rror number D9194 D214 D8186 local station 3 Data transmission error number Other D9195 D215 D8187 i local station 4 than 0 Data transmission error number D9196 D216 D8188 j local station 5 Data transmission error number D9197 D217 D8189 g local station 6 Data transmission error number D9198 D218 D8190 a local station 7 5 15 5 FUNCTIONS MELSEC A a D9183 Data transmission sequence error count master station e The number of times M9183 turned from OFF to ON is stored b D9184 to D9190 Data transmission sequence error count local station n e The numbers of times M9184 to M9190 turned from OFF to ON are stored in D9184 to D9190 e The following table indicates relationships between M9184 M9190 and D9184 D9190 Station Number Station 7 M9190 D9190 c D9191 Data transmission error number master station e The error code of the master station detected by the local stations connected to simple inter PLC link is stored e For the error codes stored refer to Section 5 2 6 3 e The error code is cleared when M9192 error clear is turned from OFF to ON after the corresponding station had recovered from the error and the data transmission sequence has resumed d D9192 to D9198 Data transmission error number local station n e The error code of the local station detected by the master local stations connected to simple inter PLC link is stored e For the error codes stored refer
149. rted if this is turned OFF while the sampling trace is being executed Operation output when OFF Coil output OFF e Operation output when the block is stopped is selected the block is stopped ON Coil output ON ON The ON OFF status of the coil which was used by the E operation output of the step being executed at the time 2 o 3 M9196 when the block was stopped is retained OFF All of the coil outputs are turned OFF The operation output by the SET instruction is retained regardless of ON OFF of the M9196 Display selection between The display is switched fuse blown and I O verify depending on the Display range error combinations of ON OFF of the M9197 and Status of X YO to 7FO ON OFF of the M9198 Status of X Y800 to FFO M9197 Status of X Y1000 to 17F0 Status of X Y1800 to 1FFO M9198 e The I O module numbers of the fuse blown module display D9100 to D9107 and the I O module verify error display D9116 to D9123 are switched e Execute the switching of display at the END Data recovery of the OFF No data recovery e When the sampling trace status latch is executed the setup data on line sampling trace ON Perform data stored in the CPU is recovered for starting again M9199 status latch recovery e Turn ON the M9199 when executing again It is not necessary to write data again from the peripheral device 1 The content of the special relay M is turned OFF when any of the following is executed turning off the power s
150. running frequency Frequency Running frequency Start stop frequency Time Acceleration Deceleration time time 2 Set the start stop frequency within the 0 to 60000Hz range to the value with which the following condition is satisfied Start stop frequency lt running frequency 3 When the start stop frequency and running frequency are the same the preset acceleration deceleration time is ignored and the following operation is performed Frequency Running f Start stop frequency pal i At pulse output start At stop Time 4 The preset start stop frequency is made valid in the END processing of the scan where the pulse output start signal M9130 M9133 M9140 switches from OFF to ON b Running frequency D9141 D9146 1 Set the frequency used when simple positioning is performed 2 Set the running frequency within the 1 to 60000Hz range to the value with which the following condition is satisfied Start stop frequency lt running frequency 3 The preset running frequency is made valid in the END processing of the scan where the pulse output start signal M9130 M9133 M9140 switches from OFF to ON REMARKS 1 The 16 bit data of the MELSEC A series is signed and represented as 32768 to 32767 Hence any value greater than 32768 cannot be set in decimal When setting the start stop frequency and running frequency of 32768Hz or higher from the peripheral conv
151. s Conforms to intermittent 10 times in each Vibration resistance JIS B 3502 and vibration 57to 150Hz 98m of X Y and Z continuous for 80 minutes Contamination level 2 Noise durability By noise simulator of 1 500Vp p noise voltage 1 Ms noise width and 25 to 60Hz noise frequency TIE 1 500VAC for 1 minute across AC external terminals and ground Dielectric withstand voltage y 500VAC for 1 minute across DC external terminals and ground A 10M or larger for 1 minute by 500VDC insulation resistance tester across AC external terminals Insulation resistance ahd around u Always ground the terminal to the protective ground connector 1 Indicates the element in the distribution system between the public electricity grid and the mechanical equipment inside the premises that the relevant device is assumed to be connected to Category Il applies to devices such as those that draw their power supply from fixed installations The surge voltage withstand capability of devices with ratings up to 300V is 2 500V 2 This index gives a measure of the incidence of conductive materials in the environment in which the device is used A contamination level of 2 indicates an environment in which there is only contamination by non conducting materials but due to occasional condensation conductivity may occur Appendix 1 APPENDICES MELSEC A The specifications in the following table apply when the A1FXCPU is used with the
152. s e M9146 Y axis REMARKS The following special relays are used for error check For details refer to Sec tion 5 3 4 Relevant Axis Number Name X Y axes 5 FUNCTIONS MELSEC A 5 3 8 Program examples Program examples for simple positioning are given below 1 System configuration a The system configuration used for program examples is shown below A1FXCPU FX2n 48ET Simple positioning command input Servo motor Servo amplifier O gt X axis Servo motor Servo amplifier Y axis 5 FUNCTIONS MELSEC A 2 X axis jog operation program a Motions in jog operation e While the forward rotation jog command X20 is on the axis is positioned in the forward direction and stops when the forward rotation jog command switches off e While the reverse rotation jog command X21 is on the axis is positioned in the reverse direction and stops when the reverse rotation jog command switches off e When the forward reverse rotation jog command does not switch on the axis stops after 16777215 pulses are output Forward rotation jog operation Start stop frequency and running frequency Frequency are set to the same number of pulses Deceleration to stop OFF E M9131 Pulse output start OFF e M9130 ON Forward rotation jog command OFF f X20 Rotation direction gt 7 7555755055 i M9129 SFE Reverse rotation jog operation Start
153. s are stored as BCD code in D9027 as follows ya B15 Example 35 minutes 48 seconds H33548 Minutes Seconds Example Thursday H0004 Always set 0 Tuesday Wednesday Thursday Saturday Expanded file register Block number being used e The block number of the expanded file register which is currently being used is stored as BIN code For specifying the device number of the expanded file register Device number when each device of the extended file register is directly accessed To directly read from and write to an extended file register specify the device number of the extended file register by two words of BIN value in the D9036 and D9037 The device number is independent of the block number and is specified by a serial number from RO of block No 1 Expanded file register 0 to Block No 1 area 16383 16384 D9037 D9036 to to Appendix 22 APPENDICES Number MELSEC A Appendix Table 4 2 List of Special Registers Continued LED display priority Description Priority 1 to 4 Priority 5 to 7 Details of contents e Set and change the element number in the LED display of the CPU module Priority 1 to 4 are in the D9038 and 5 to 7 are in the D9039 B15 LY si 1 position Priority Even if 0 is set the error which stops the operation of the CPU including the parameter setting is displayed on the LED unconditionally Defa
154. s depending on timing e20 lt t lt 30 10ms or 20ms depending on timing Also every time the interrupt program is executed the scan time and constant scan time may increase 5 FUNCTIONS 5 5 2 Wiring for use of the external interrupt function MELSEC A When using the external interrupt function wire the interrupt inputs to X0 X5 A1 to A3 B1 to B3 terminals of the Built in function connector Relationships between X0 X5 of the Built in function connector and interrupt pointers are as indicated below e X0 e X1 e X2 Interrupt pointer 10 Interrupt pointer 11 Interrupt pointer 12 e X3 e X4 e X5 Interrupt pointer 13 Interrupt pointer 14 Interrupt pointer 15 A1FXCPU External switch 5 FUNCTIONS MELSEC A 5 5 3 Setting for executing the external interrupt function Use the special relays to set the external interrupt function Table 5 13 indicates the special relays used to set the external interrupt function Table 5 13 Special Relays Used for Setting the External Interrupt Function Operation at ON OFF M9119 Interrupt control during execution FROM TO instruction Interrupt overrides of FROM TO instruction overrides interrupt FROM TO instruction X0 Executed on X0 Executed on M9120 Interrupt pointer 10 polarity setting leading edge trailing edge X1 Executed on X1 Executed on M9121 Interrupt pointer 11 polarity setting leading edge trailing edge 7
155. s function can be used for time control in the A1FXCPU e Clock data Year month day hour minute second day of the week e Clock data can be read to special registers D9025 D9028 5 FUNCTIONS MELSEC A Table 5 2 Built In Functions Added to the A1FXCPU Function Description ReferTo Simple inter PLC e With this function data is automatically exchanged between up to eight Section 5 2 link A1FXCPU FX2n and FXon series modules connected e Select the number of link points per station from the following patterns e Pattern 0 Bit data O points word data 4 points e Pattern 1 Bit data 32 points word data 4 points e Pattern 2 Bit data 64 points word data 8 points e Transmission distance 500m overall Simple positioning e With this function positioning is performed by max 60kpps pulse output Section 5 3 with servo amplifier stepping motor driver connected e Number of controlled axes 2 axes 2 axes independent simultaneous start e Pulse output CW CCW PULSE SIGN e Positioning range 0 to 16777215 pulses High speed counter e This function counts max 60kpps pulse inputs from an encoder Section 5 4 e Number of channels 2 channels e Counting range 0 to 16777215 pulses e An interrupt program 112 113 can be run when the coincidence output set value matches the present value of the counter External interrupt e This function executes a program 10 to 15 corresponding to an interrupt Section 5 5 fact
156. s points Large sized graphic operation terminal 640x400 dots EL 2 colors Mid sized graphic operation terminal Graphic operation terminal 320x240 dots STN color 8 colors A956GOT 320x240 dots STN monochrome 320x240 dots TFT color liquid crystal 256 colors Mid sized graphic operation terminal A956W GOT Da 820x240 dots TFT color liquid crystal 256 colors Mid sized graphic operation terminal 320x240 dots STN color 8 colors A953GOT 320x240 dots STN monochrome 320x240 dots TFT color liquid crystal 256 colors With handheld type Mid sized graphic operation terminal 320x240 dots STN color 8 colors 32 32 special 320x240 dots STN monochrome points 820x240 dots TFT color liquid crystal 256 colors A951GOT 3 SYSTEM CONFIGURATION MELSEC A Table 3 3 System Equipment List Continued Type Description Occupied ipti i Points 320x240 dots STN color 8 colors 320x240 dots STN monochrome 320x240 dots TFT color liquid crystal 256 colors With handheld type Large sized graphic operation terminal 8 4 640x480 dots TFT color 256 colors 65536 colors A950GOT GT1565 VTBA Graphic operation terminal When installing a multi color display board 65536 colors can be displayed 32132 special i Large sized graphic operation terminal points 10 4 640 x 480 dots TFT color 256 colors 65536 GT1575 VTBA colors When installing a multi color display board 65536 c
157. s simple inter PLC link function operates properly or not loopback self check This check judges whether data sent from SDA RDA and SDB RDB can be received by SDA RDA and SDB RDB properly to determine whether the function is normal or abnormal 1 Operation procedure a When a cable is connected to SDA RDA and SDB RDB for simple inter PLC link disconnect the cable from the terminal block after switching off the power of the A1FXCPU b Move the RUN STOP switch of the A1FXCPU to the STOP position i c Switch on the power of the A1FXCPU d Turn on the special relay M9193 in the test mode of the peripheral i e Vhen the function is normal the L RUN LED is lit and SD and RD flicker Since SD and RD flicker fast they appear as if they are lit e When the function is abnormal SD and RD are extinguished The L RUN LED goes off when M9193 is turned off Normal Abnormal The following gives the indications LINK of the LEDs on the left EE RUN EE RUN EE On EX SD Ed SD EX Flickering RD ER RD C Off Flickering off e To end the loopback self check turn off the special relay M9193 in the test mode of the peripheral 2 Action to be taken after end of loopback self check a When the function is normal start simple inter PLC link in the following procedure e Shut off the power of the A1FXCPU in all phases e Connect the A1FXCPU FXon and FXan series modules by cables e Switch on the power o
158. s the present value of the counter Preset function Preset operation can be done either by a sequence program or by an external preset input i Counting alternates between the preset value and the Ring counter function ring counter value Count disable Stops counting pulses while the signal of the counter function function selection start command is ON Counter function Stores the present value of the counter into the spe selection Latch counter 3 E cial registers when the signal of the counter function function a selection start command is input Outputs an ON OFF signal internally switches on off the special relay in a preset output status of any Coincidence output function channel comparing it with the present value of the counter An interrupt program 112 113 can also be run 5 FUNCTIONS MELSEC A 5 4 1 Instructions for the high speed counter function 1 Encoders that may be connected Open collector output type encoders can be connected for the high speed counter function of the A1FXCPU 2 High speed counter data setting The following high speed counter function data should be set before count enable M9154 M9174 is turned on e Ring counter setting M9157 M9177 only when ring counter function is used e Counter function selection setting D9159 D9169 e Counting speed selection M9158 M9178 e Pulse input mode D9154 D9164 3 Restrictions made when ring counter function is select
159. se output status OFF M9143 M9144 Present output pulse count pes D9137 Yo to Specified number of pulses Xo to Specified number of pulses D9138 D9139 is Output pulse count is retained Output pulse count is updated at END processing FUNCTION S FUNCTIONS MELSEC A 5 3 7 Checking for errors in simple positioning control This section describes errors which are detected when simple positioning is per formed by the A1FXCPU 1 Errors Pulse output is provided when no error is found by an error check made at the END processing of the scan where the simple positioning pulse output start sig nal M9130 M9140 M9133 is turned on Pulse output is not provided when an setting error occurs since e The specified positioning data is outside the setting range e Start stop frequency gt running frequency e For X axis start e M9130 was turned on when M9128 was off e M9130 was turned on while any of M9131 M9132 M9134 and M9135 was on e For Y axis start e M9140 was turned on when M9138 was off e M9140 was turned on while any of M9141 M9142 M9134 and M9135 was on e For simultaneous start e M9133 was turned on when M9128 and M9138 were not on e M9133 was turned on while any of M9131 M9132 M9134 M9135 M9141 and M9142 was on 2 Error check M9145 M9146 turns on if an error exists when the pulse output start signal is turned on for simple positioning e M9145 X axi
160. se pulse input high speed counter Edie counter XC X axis CW PULSE common Y axis CW PULSE OV A11 Y10 COM connected to Y12 common Y11 COM connected to Y13 common internally internally X axis CW PULSE output B12 v41 Y axis CW PULSE output X axis CCW SIGN common Y axis CCW SIGN common A13 Y12 COM connected to Y10 common B13 Y13 COM connected to Y11 common internally internally ae X axis CCW SIGN output a a Y axis CCW SIGN output External supply for Y10 12 X axis External supply for Y11 13 Y axis at 24VDC 24VDC input at 24VDC 24VDC input DOS External supply for Y10 12 X axis B16 YDC5 External supply for Y11 13 Y axis at 5 15VDC 5 15VDC input at 5 15VDC 5 15VDC input The applicable wire size is 0 3mm 2 PERFORMANCE MELSEC A 2 8 Performance Specifications of the Terminal Block Table 2 18 provides the terminal block performance specification list of the A1FXCPU Table 2 18 Performance List Terminal Block Front View Terminal Signal VA Application Number Name AC power input Line ground Always ground the terminal to the protective ground conductor ON AC power input N EEE Must not be used 24VDC output for external service power supply Simple PLC link i FG 24VDC ground for external service power supply FG Grounding terminal Always ground the terminal to the protective ground conductor 1 Tighten the terminal screws within the following
161. selection M9158 M9178 1 Turn this signal on when using the high speed counter on the 10k side On the 10k side pulses are counted in the following counting speed e For 1 phase input 10kpulses s e For 2 phase input 7kpulses s 2 When counting speed selection is off the high speed counter operates on the 60k side On the 60k side pulses are counted in the following counting speed e For 1 phase input 60kpulses s e For 2 phase input 60kpulses s m Counter function selection start command M9159 M9179 1 Used for the following functions e Latch counter function e Count disable function 2 For the latch counter function turn on this signal when the present value is stored into the latch count value storing special registers The counter function selection start command is made valid when it turns from off to on leading edge For details of the latch counter function refer to Section 5 4 7 3 For the count disable function counting stops while the counter function selection start command is on Counting resumes when the counter function selection start command is switched off For details of the count disable function refer to Section 5 4 6 5 FUNCTIONS MELSEC A 2 Special registers The special registers indicated in Table 5 11 are used for the high speed counter function Table 5 11 Special Registers for the High Speed Counter Device D9152 D9162 Preset value lower 16 bits Allowed Allowed D9153 D9163
162. set value matches the count value an interrupt program 112 113 can be run A1FXCPU 4 Interrupt input function By switching on the interrupt terminals of the A1FXCPU external connector interrupt programs 10 to 15 can be run by the A1FXCPU A1FXCPU Switch etc N 1 INTRODUCTIO MELSEC A 1 3 Instructions for Use of the A1FXCPU When using the A1FXCPU follow these instructions 1 Switching between RAM and E PROM The A1FXCPU incorporates RAM and E PROM and allows ROM operation EPROM to be performed by setting the DIP switch to the corresponding position The DIP switch is factory set for RAM operation For details refer to Section 4 2 1 2 Assignment of I O points a The A1FXCPU controls the extension module extension block inputs and outputs in blocks of 16 points If the input extension module used is of 8 points the number of I O points is calculated as 16 points Use the number of occupied points in Table 3 3 to calculate the number of I O points used with the A1FXCPU b One special module or special block occupies 8 I O points Hence the number of points used for special modules special blocks is decremented by 8 points per special module special block However the FXon 16NT FX 16NT and FX 16NP do not occupy 8 points 3 Assignment of I O numbers a The I O numbers of the A1FXCPU are controlled in hexadecimal X YLI0 to X YLIF The I O numbers always begin with X YL10 b One spe
163. special block cannot be performed from the GOT connected to the A1FXCPU If buffer memory monitoring is made error message SPECIFIED DEVICE OUTSIDE RANGE appears on the GOT c Special module monitoring cannot be performed from the GOT connected to the A1FXCPU If special module monitoring is made ALL SLOTS EMPTY appears 3 SYSTEM CONFIGURATION MELSEC A 3 2 2 Software packages 1 System software package and startup type setting Any of the A series peripherals and system software packages indicated in Table 3 1 can be used with the A1FXCPU When starting up the system with the system software package set A2 as the CPU type The FX series software packages cannot be used with the A1FXCPU Table 3 1 A Series Peripherals and System Software Packages Startup Type Peripheral System Software Package Setting SW3 GPPA A6GPP SWLIGP GPPA AGPHP SWLIGP GPPA SWORX GPPA A7PHP SWOSRX GPPA SWLISRXV GPPA A7HGP SWUIHX GPPA LIS GPPA ATLMS OSRX GPPA LISRXV GPPA SW SWON GPPA PC9800 SWLINX GPPA W DOS V personal computer SWLIIVD GPPA 2 Utility packages Table 3 2 indicates the utility packages usable with the A1FXCPU Table 3 2 Utility Packages Usable with A1FXCPU UtilityPackage Type Usability Remarks SWOGHP UTLPC FN1 Select A2 for startup type Usable SWOC UTLP FNO SW2SRXV SAPA MELSAPII SW1GP AD57P Unusable SW1GP SAPA MELSAP SWOGHP UTLPC FNO setting 3 S
164. ss Input resistance 4 7kQ l OFF gt 0N 0 5ms or less Response time ON OFF 0 5ms or less 10 points 1 common 2 terminals Common method Common to XO to 9 External wiring Terminal Signal Terminal Signal dat Number Name Number Name Internal circuit External switch sie as Internal circuit Photocoupler Indicates the terminal which is not used with this function 2 PERFORMANCE MELSEC A 2 7 Terminal Arrangement of the Built in Function Connector Terminal Number toni A2 xo 8 X8 COM1 Common for input XO to 9 Table 2 17 gives the Built in function connector terminal arrangement list of the A1FXCPU Table 2 17 Terminal Arrangement List Built in Function Connector Terminal Arrangement Front View X1 X3 X5 X7 X9 com XB XD iu IY11 u Y13 fvoc24 vocs 0000000000000000 ATAA a ee X0 X2 X4 X6 X8 com XA om Y 10 u Y 12 x0024 x0s Signal Terminal Signal Application Application Name Number Name Interrupt input 11 Interrupt input 13 Interrupt input 10 xt Interrupt input 15 Interrupt input 12 CH2 count disable latch counter trigger input CH2 counter preset input CH1 counter preset input x9 COM1 Common for input XO to 9 pio trigger input Be E CH1 A phase pulse input CH2 A phase pulse input high speed counter high speed counter CH1 B phase pulse input Ea B pha
165. stations REMARKS 1 The versions of the FXon and FX2n are printed on the side face of the modules 2 The serial number of the FXon 485ADP is printed on the side face of the module 5 FUNCTIONS 5 2 2 Procedure for simple inter PLC link MELSEC A The following is a simple inter PLC link procedure START Wire cables for simple inter PLC link Determine the number of link points per station in simple inter PLC link Determine the station numbers of the master and local stations Create a link setting program Write parameters and sequence program into the A1FXCPU Switch the A1FXCPU from STOP to RUN SD and RD LEDs flicker Refer to Section 5 2 3 Refer to Section 5 2 4 Refer to Section 5 2 4 Refer to Section 5 2 5 Refer to Section 4 1 5 FUNCTIONS MELSEC A 5 2 3 Wiring for simple inter PLC link For simple inter PLC link connect the A1FXCPU FX2n and FXon series modules as shown below A1FXCPU FX2N 485 BD A1FXCPU FXon 485ADP Shielded twisted pair cable 1 Connection Connect simple inter PLC link stations as shown above When using the FX2n and FXon series refer to the user s manual of the communication adaptor communication board used 2 Connection cables Connect simple inter PLC link stations by shielded twisted pair cables For the specifications of the shielded twisted pair cables refer to Section 2 3 3 3
166. stop frequency and running frequency Frequency are set to the same number of pulses 100 a Time Deceleration to stop OFF a M9131 Pulse output start OFF A M9130 Forward rotation jog command OFF ps X21 ON Rotation direction M9129 5 43 5 FUNCTIONS b Jog operation program M9038 SET RST SET X0020 Pe a Ls MO M5 M9128 M9143 10 14 PLS SET X0021 AP LS M3 M2 M9128 M9143 22 26 PLS SET Ml 34 H ERK est M4 38 _f it MI PK 42 MOV 100 M4 P K MOV 100 PK DMOV 16777215 SET X0020 M2 t WATNYNYNYNN E X0021 M5 HH hPL M6 M9143 64 69 74 SET M9130 M9143 tb HTS RST M9131 M9143 80 85 RST RST RST CIRCUIT END 5 44 M9126 M9127 M9128 MO Ml M2 M3 M4 M5 M9129 M9129 D9141 D9142 D9143 M9130 M6 M7 M9131 M9130 M9131 M2 M5 MELSEC A Sets positive logic Sets CW CCW Sets that simple positioning is used Accepts forward rotation jog command ON Forward rotation jog start command Switches on interlock signal for use during forward rotation jog operation Accepts reverse rotation jog command ON Reverse rotation jog start command Switches on interlock signal for use during reverse rotation jog operation Sets forward rotation direction Sets reverse rotation direction Sets start stop frequency 100Hz Sets running frequency 100Hz Sets output
167. t Setting storage into Memory Capacity 4 E PROM Parameters Parameters T C set values set values 4k Akbytes fixed fixed Sa program E x aea Allowed Main program Main Microcomputer 2k bytes microcomputer x 2k bytes program program capacity Sampling trace 0 8k bytes Disallowed Po Memory capacity for file register status latch is the Status latch Disallowed 2 a i Fi sei No Ha register I ivi file register capacity set in ile registers o yes memory capacity PY aisi File register x 2k byt File registers 1k points points ytes Disallowed i Comment points Comment capacity setting Comments 64 points _ 1kbyte Disallowed 64 occupies 1k byte in system 2 PERFORMANCE MELSEC A 2 Sequence of data storage into user memory a Various data set in parameters are stored in the sequence shown in Fig 2 2 b Before performing write protect make sure that the sampling trace file register and other areas where data is written during sequence program execution are not in the write protect range c If the main program is stored in E PROM the system uses the area where the main program was stored in the RAM operation mode Hence if E7PROM operation is performed the sampling trace status latch file register and comment capacities cannot be increased a RAM operation b E7PROM operation ni T C set values Writ E2PROM capacity etna be adi Sequence pro
168. the RUN STOP switch to the STOP position e Executing the STOP instruction in the sequence program e Performing remote STOP from the peripheral e Turning on the remote STOP contact 1 When entering the STOP mode the A1FXCPU saves the output status internally and turns off all extension module extension block outputs Y 2 Data memories other than the outputs Y are latched 3 Operation processing in PAUSE mode In the PAUSE mode the outputs Y and data memories are latched and sequence program operation is stopped by e Performing remote PAUSE from the peripheral e Turning on the remote PAUSE contact and PAUSE enable contact M9040 1 In any of the RUN STOP and PAUSE modes the A1FXCPU is making e Communication with the peripheral e Refresh processing of extension modules extension blocks e Link refresh of simple inter PLC link Therefore I O monitoring and test operation can be performed from the peripheral equipment in the STOP and PAUSE modes REMARKS 1 Set the remote STOP and remote PAUSE contacts in parameters from the peripheral 2 When the peripheral is used to monitor the outputs Y they all turn off 2 PERFORMANCE MELSEC A 2 1 4 Operation processing at occurrence of an instantaneous power failure The A1FXCPU detects an instantaneous power failure when the input source voltage supplied to the power supply section of the A1FXCPU drops below the specified value On detection of an instantaneous
169. thin 5seconds the inrush current exceeding the specified value 2ms or less may be generated Therefore make sure to re power ON the module 5seconds after power off When selecting a fuse or breaker for external circuit consider the above point as well as meltdown and detection characteristics 2 PERFORMANCE 5 6 T MELSEC A Overcurrent protection The overcurrent proctection device shuts off the 5VDC and or 24VDC circuit s and stops the system if the current exceeding the specified value flows in the circuit s As this results in voltage drop the power supply module LED turns OFF or is dimly lit After that eliminate the causes of overcurrent e g insufficient current capacity and short circuit and then start the system When the current has reached the normal value the initial start up of the system will be performed Overvoltage protection The overvoltage protection shuts off the 5VDC circuit and stops the system if the overvoltage of 5 5 to 6 5V is applied to the circuit This results in the power supply module LED turning OFF When restarting the system power OFF and ON the input power supply and the initial start up of the system will be performed If the system is not booted and the LED remains off this means that the power supply module has to be replaced Allowable momentary power failure period The PLC CPU allowable momentary power failure period varies with the power supply module used
170. thod when M9128 M9138 is turned from OFF to ON are made valid When M9128 M9138 is off the outputs serve as general purpose outputs transistor outputs Y10 to Y13 2 Set M9128 M9138 at the first scan after power is switched on or the CPU is reset by the RESET switch Before turning on M9128 M9138 set the pulse output logic and pulse output method 3 When M9128 M9138 has been turned on to choose simple positioning control do not turn M9128 M9138 off at any point during positioning First scan after the A1FXCPU is switched on or is reset by RESET switch Step 0 END Step0 Sequence program EASY ON Pulse output logic Ri switching e M9126 M9136 iI Do not turn off Pulse output method u J during positioning M9127 M9137 Whether simple positioning control is used or not M9128 M9138 Either may be turned on first Control exercised in END status on leading edge of M9128 M9138 5 FUNCTIONS MELSEC A 2 Special registers for setting the positioning data Special registers are used to set the speeds travels etc for positioning Set data to the special registers before outputting pulses by the pulse output start signal M9130 M9140 M9133 Table 5 8 indicates the special registers used for setting the positioning data Table 5 8 Special Registers for Setting the Positioning Data What Are Set Relevant Default Setting Use of Axis Value Range simultaneous start D9140 _ Start sto
171. tion error error Stop Stop continuation time of error Special function module check error Operation status prior to Output prior to stop or after STOP gt RUN output mode pera uel Mie see p aimee a a is re output ete ri execution Print title Print title registration Lo None Up to 128 characters to 128 characters Hexadecimal 0 to 9 A to F Keyword registration None Max 6 mer Link range Link range setting Lo Noe Lo Noe Setting is invalid is invalid Operation mode setting at error occurrence in the peripheral device parameters is done with FUSE BREAK OFF 2 9 2 PERFORMANCE MELSEC A 2 1 7 Memory capacity main program file register comment etc setting The A1FXCPU is standard equipped with 64k byte RAM and 32k byte E PROM The DIP switch of the A1FXCPU is used to switch between RAM and E PROM For the DIP switch setting refer to Section 4 2 1 The following data are stored in 64k byte RAM e Parameters e T C set values e Main program e Sampling trace data e Status latch data e File registers e Comments 32k byte E PROM is used for ROM operation of the A1FXCPU and can store the following data e Parameters e T C set values e Main program 1 Memory capacity calculation Use RAM E PROM after determining stored data types and memory capacities by parameter setting Use Table 2 4 to calculate memory capacities Table 2 4 Parameter Setting and Memory Capacity Lis
172. tions to the local stations in the sequence program link setting program Refer to Section 5 2 4 5 FUNCTIONS MELSEC A 5 2 1 Instructions for simple inter PLC link In simple inter PLC link the FX2n and FXon series can be connected This section provides instructions for connection of the FX2n and FXon series 1 Versions of FX2n and FXon series a The FXon FX2n series connected to simple inter PLC link should all be version V 2 00 or later simple inter PLC link compatible 2 Connect communication adaptors to the FX2n and FXon series a The FXon series requires the communication adaptor FXon 485ADP to be connected b The FX2n series requires the communication adaptor FXon 485ADP or communication board FX2n 485 BD to be connected e When the communication adaptor is used overall distance is 500m e When the communication board is used overall distance is 50m Use the special adaptor when the FXan series is used and overall distance of longer than 51m is required 3 Serial number of communication adaptor FXon 485ADP n The FXon 485ADP having the serial number 79 or earlier cannot be used in simple inter PLC link In simple inter PLC link use the FXon 485ADP having the serial number 7X or later 4 Restrictions on connection of FXon series When one or more FXon series are used the refresh range may only be set to pattern 0 When using pattern 1 or 2 use the A1FXCPU or FX2n series modules at all
173. to 16 5VDC at 5 15VDC 21 6 to 26 4VDC at 24VDC Max load current inrush current 50mA point 200mA 10ms or less at 25 C Min load current 2mA when it is less than 2mA a dummy resistor should be added Max an drop at ON ea ia 5VDC or less Leakage currentatOFF current at OFF i 0imAiorless J mo l 1mA or less 2 points 1 common Common method SALE COM and Y12 COM and Y11 COM and Y13 COM are connected Dima Number Name Number Name AIFXCPU lt XIYDOS Photocoupler Photocoupler A16 B16 Indicates the terminal which is not used with this function For use of the X axis Connect the power supply to XDC5 at 5 15VDC or to XDC24 at 24VDC For use of the Y axis Connect the power supply to YDC5 at 5 15VDC or to YDC24 at 24VDC 2 PERFORMANCE MELSEC A 2 4 3 Output specifications 1 Pulse output The following table lists the relationships between pulse output switching and pulse outputs by pulse output logic switching setting Refer to Section 5 3 4 Output Positive Logic Negative Logic Terminals Pulse Output ES a gat o Method Forward Reverse Forward Reverse X axis Y axis a p A rotation rotation rotation rotation 2 Pulse rise fall time The following table lists the pulse rise and fall times at the ordinary ambient temperature Table 2 12 Pulse Rise Fall Time at Normal Temperatures Load voltage V asa 4 75 Ca
174. to noise memory with the peripheral check and correct the data and write them to memory again MISSING END There is no END FEND instruction in the program INS CAN T EXECUTE 1 No jump destination or several Read the error step with the P destinations specified for the CJ peripheral and correct the program in SCJ CALL P or JMP instruction that step 2 The RET instruction has been Correct by inserting a jump executed with no corresponding destination or reducing destinations CALL P instruction to one 3 The CJ SCJ CALL P or JMP instruction has been executed with jump destination located after the END instruction 4 The number of FOR instructions does not match that of NEXT instructions 5 The JMP instruction is provided between FOR and NEXT to exit from FOR NEXT 6 Before the RET instruction is executed the JMP instruction has been executed to exit from the subroutine 7 The JMP instruction has been executed to jump into the step between FOR and NEXT or into the subroutine 8 ERROR CODE LIST Table 8 1 Error Code List Continued Content of Special Register D9008 BIN Value Error Message CHK FORMAT ERR CAN T EXECUTE my RAM ERROR 20 Sto 1 The CPU could not access the data p memory area of the CPU OPE CIRCUIT ERR WDT ERROR 22 Stop Error and Cause 1 The CHK instruction ladder block contains an instruction including NOP other than LD XO LDI
175. ulse output status M9143 M9144 refer to Section 5 3 6 5 FUNCTIONS MELSEC A 2 Pulse output start signal M9130 M9140 M9133 a Turn on when starting positioning b Pulse output is provided in the END processing of the scan where M9130 M9140 M9133 is turned on M9130 M9140 M9133 should be switched on for 1 or more scans of the se quence program Positioning is not performed when M9130 M9140 M9133 is off in END proc essing 1 To minimize the influence of the sequence program scan time on the delay time at the start of the pulse output turn on M9130 M9140 M9133 near the END instruction 2 If executing a COM instruction of a link refresh soon after turning the M9130 M9140 M9133 on a pulse processing is performed by the COM in struction M9143 M9144 signals which tell the pulse status refer to Section 5 3 6 are turned on with the COM instruction execution Processing performed when M9130 M9140 M9133 is turned on END processing Step 0 END instruction seep 0 Sequence e TT TT i parr On for 1 or more scans ON Y Pulse output start OFF M9130 M9140 M9133 When M9130 M9140 turns on pulse For negative logic output starts at END processing Pulse output starts CW OFF ON CCW Processing performed when M9130 M9140 M9133 is turned off during 1 scan END processing Step 0 END instruction ss 0 Sequence eR ep program ON Pulse output start OFF M9130 M9140
176. ult values D9038 H4321 D9039 H0765 Element Number Description No display 1 0 matching fuse blown Special module link parameter operation error CHK instruction error Annunciator LED instruction related Battery error Clock data For the sampling trace Step or time of the sampling trace When the M9044 is turned ON OFF in peripheral device and the sampling trace STRA or STRAR is activated the value stored in the D9044 as a sampling trace condition is used For scan 0 For time time in 10ms unit Stored in BIN code Work area for the SFC Block number of the expanded file register The block number of the expanded file register which is used as a work area for the SFC is stored Upper 8 bits The block number is stored Lower 8 bits The step number is stored Error number of the SFC program Number of the error which occurred in the SFC program The error number which occurred in the SFC program is stored as a BIN value 0 No error 80 Parameter error of the SFC program 81 Number of steps to be executed simultaneously exceeded the limit 82 Block startup error 83 Operation error of the SFC program Error block Block number where the error occurred The block number where the error occurred in the SFC program is stored as a BIN value When error 82 occurs however the block number of the startup source is stored Err
177. upply latch clear operation reset operation by the reset key switch The contents are preserved when the RUN key switch is in the STOP position The special relays marked by 1 in the list maintain ON even after the status returns to normal Therefore use the following methods to turn it OFF M9000 H Put the special relay to reset 1 From the user program La Reset execution instruction HH RST Insert the circuit shown to the right in the program and turn ON the reset execution instruction contact to clear the special relay M From the peripheral device Force reset by the test function of the peripheral device Refer to the manual of each peripheral device for the operation It can be turned OFF by flipping the reset key switch on the CPU front panel to the reset side For the relays marked by 2 ON OFF can be controlled by the sequence program For the relays marked by 3 ON OFF can be controlled by the test mode of the peripheral device For the relays marked by 4 they can be reset only when the power supply is turned ON from OFF Appendix 19 APPENDICES Appendix 4 2 List of Special registers MELSEC A The special registers are data registers having predetermined applications in the PC Therefore data should not be written to these registers except those marked 1 and 2 in the table in the program Data should not be written to the registers not given in the table either Number F
178. upt program is run When M9119 is turned on the FROM DFRO TO DTO instruction cannot be used in an interrupt program e Relevant interrupts are 10 to 15 112 113 and 129 to 131 8 ERROR CODE LIST MELSEC A 8 ERROR CODE LIST If an error occurs when the PLC power is on or while it is on the self diagnostic function causes the error to be displayed or the error code including the step number to be stored in the special register Table 8 1 indicates how to read the error code at error occurrence error causes and how to take action Take proper action to remove the error cause Error messages error codes definitions and causes of errors and corrective actions are given below Table 8 1 Error Code List Content of Special CPU Error Message Register D9008 Error and Cause Status BIN Value INSTRUCT CODE An unrecognized instruction code is 1 Read the error step with the ERR included in the program peripheral and correct the 1 The program including an program in that step unrecognized instruction code was 2 Write the program to E PROM written from the peripheral 3 Write the program from the 10 Stop 2 Memory contents changed for some peripheral to E PROM reason causing the unrecognized instruction code to be included 3 Though the DIP switch is set to E PROM the program is not written to E PROM PARAMETER Parameter data in CPU memory Read the parameter data of CPU ERROR 11 Stop changed due
179. urned ON when the sampling trace is completed for the number of times specified by the peripheral device Then it is reset by executing the STRAR instruction Sampling trace 0 gt 1 Same as executing STRA 1 0 Same as executing STRAR Pseudo STRA STRAR turning ON OFF M9044 Forcibly turn ON OFF M9044 from the peripheral device STRA instruction when the M9044 changes from OFF to ON STRAR instruction when the M9044 changes from ON to OFF The sampling trace condition depends on the D9044 instruction can be executed by Watchdog timer WDT reset OFF WDT is not reset ON WDT is reset By turning the M9045 ON WDT is reset while the ZCOM instruction or the batch processing of the data communication requests is executed Used when the scan time exceeds 200ms Appendix 16 APPENDICES Number MELSEC A Appendix Table 4 1 List of Special Relays Continued Sampling trace OFF ON Description Trace is not in progress Trace is in progress Details of contents ON while the sampling trace is executed Sampling trace standby OFF ON Abort sampling trace Start sampling trace The sampling trace cannot be executed unless the M9047 is turned ON The sampling trace is stopped when the M9047 is turned OFF Number of output characters switch Output until the NUL c
180. use blown Description Module number of the fuse blown Appendix Table 4 2 List of Special Registers Details of contents e When the module with a fuse blown is detected the smallest number of the detected module is stored in hex Example When the fuse of the output module Y50 to 6F is blown 50 in hex is stored Monitor in hex to monitor from a peripheral device It is cleared when the contents of D9100 to D9107 become all 0 I O module verify error Module number of the I O module verify error When an output module other than the one registered at the power supply startup is detected the head of the smallest I O number of the detected module is stored in hex The storing method is the same as that for D9000 Monitor in hex to monitor from a peripheral device It is cleared when the contents of D9116 to D9123 become all 0 MINI link error Set by the parameter Status of 1 to 8 units are stored The error detect status of the MINI S3 link is stored to the installed A1SJ71PT32 S3 b15 b8 b7 f to to bo 8th 7th 6th 5th 4th 3rd 2nd j st 8th 7th 6th 5th 4th Brd 2nd fist module module module module module module module module module module module module module module module module The bit corresponding to the master module which cannot execute the data communication between the PLC CPU and itself is turned ON When the following signal of the master module is tu
Download Pdf Manuals
Related Search
Related Contents
ALTO Filestore User Guide - Process Arts MANUAL DEL USUARIO Cisco Systems 3030 Switch User Manual Operating Instructions and Parts Manual Industrial Pump Models: SP CTTITEM: SAS macro and SPSS syntax for classical item analysis Installation manual VZ-C12_2 und VZ-C32 FB4.cdr Copyright © All rights reserved.
Failed to retrieve file