background image

 
 

 

5 - 11 

MELSEC-A

5   PROGRAMMING 

 

5.5 Program Example for Use of the ACPU/QCPU (A mode) (dedicated instructions) 

A sequence program is used to set the network and automatic refresh parameters. 

 

(1) Program 

example 

 

Setting of network parameters using RLPA dedicated instruction

Setting of automatic refresh parameters using RRPA dedicated instruction

Synchronization mode invalid

Number of connected 
modules:1
AJ65SBT-64AD station 

information (remote device 

station, 1 station occupied, 

station No. 1)
Dedicated instruction (RLPA)

Starting I/O number of master 
module

Parameter storage starting 
device 

Device which turns on 1 scan
at completion 

Reads parameter status at 
abnormal completion.

Sets RX starting number.

Sets "X".

Sets X400.

Sets RY starting number.

Sets 32 points.

Sets "Y".

Sets Y400.

Sets 32 points.

Sets RW starting number.

Sets "D".

Sets D200.

 

 

Summary of Contents for AJ65SBT-64AD

Page 1: ...Analog Digital Converter Module Type AJ65SBT 64AD User s Manual Mitsubishi Programmable Controller...

Page 2: ......

Page 3: ...conditions resulting in medium or slight personal injury or physical damage Note that the CAUTION level may lead to a serious consequence according to the circumstances Always follow the precautions o...

Page 4: ...can cause the product to be damaged or malfunction Always earth the FG and FG1 terminals to the protective earth conductor Not doing so can cause a malfunction Be sure to tighten any unused terminal...

Page 5: ...ses of the external power supply used by the system before cleaning or retightening the terminal screws Not doing so can cause the module to fail or malfunction Undertightening can cause a drop short...

Page 6: ...5 SH NA 080106 C Addition Section 2 3 Correction SAFETY PRECAUTIONS About Manuals Section 3 1 4 2 Appendix 2 Mar 2006 SH NA 080106 D Correction REVISIONS Section 2 3 Jan 2007 SH NA 080106 E Correction...

Page 7: ...ICATION 3 1 to 3 16 3 1 General Specification 3 1 3 2 Performance Specification 3 2 3 3 I O Conversion Characteristics 3 3 3 3 1 Voltage input characteristics 3 4 3 3 2 Current input characteristics 3...

Page 8: ...ing Procedure 5 1 5 2 Conditions of Program Example 5 2 5 3 Program Example for Use of the QCPU Q mode 5 4 5 4 Program Example for Use of the QnACPU 5 8 5 5 Program Example for Use of the ACPU QCPU A...

Page 9: ...tions functions handling wiring and troubleshooting of the QJ61BT11N Optionally available SH 080394E 13JR64 type AnSHCPU AnACPU AnUCPU QCPU A A Mode Dedicated Instructions Programming Manual Explains...

Page 10: ...SBTB1 16D Remote device station Remote station that handles bit unit and word unit data only Performs input and output with external devices and analog data exchange Remote station Generic term for re...

Page 11: ...roduct components This product consists of the following Product Name Quantity Type AJ65SBT 64AD analog digital converter module 1 Type AJ65SBT 64AD analog digital converter module user s manual hardw...

Page 12: ...m value of the digital output value at the operating ambient temperature of 25 5 C 2 Input range selectable per channel You can choose the analog input range per channel to change the I O conversion c...

Page 13: ...1 2 MELSEC A 1 OVERVIEW MEMO 1...

Page 14: ...master local module local station AJ61BT11 A1SJ61BT11 AJ61QBT11 A1SJ61QBT11 Remote device station AJ65SBT 64AD Remote device station 1 station occupied RX RY 32 points each RWr RWw 4 points each Obje...

Page 15: ...restrictions refer to the A series master module user s manual and the Programing Manual type AnSHCPU AnACPU AnUCPU QCPU A mode Dedicated Instructions This module does not allow the use of the dedica...

Page 16: ...1131 2 147m s2 3 times each in 3 directions Usage environment No corrosive gas Usage height 3 Less than 2000m less than 6562ft Installation area Within the control board Over voltage category 1 Less t...

Page 17: ...k dedicated cable Dielectric withstand voltage Between power supply communication system batch and analog input batch 500VAC 1 minute Isolation system Across communication system terminals and all ana...

Page 18: ...values with a straight line when converting the analog signals voltage or current input from an external source of the PLC to digital values The offset value is an analog input value voltage or curre...

Page 19: ...aximum or minimum For 0 to 4000 the digital output value is within the range 96 to 4095 For 4000 to 4000 the digital output value is within the range 4096 to 4095 3 Within the analog input and digital...

Page 20: ...put value is fixed to the maximum or minimum For 0 to 4000 the digital output value is within the range 96 to 4095 3 Within the analog input and digital output scopes of each input range the maximum r...

Page 21: ...g the digital output value does not increases decreases by one Gain value Offset value 4000 Maximum resolution 3 3 4 Accuracy Accuracy is relative to the maximum value of the digital output value If y...

Page 22: ...channel of the AJ65SBT 64AD is 1ms Due to the data link processing time of the CC Link system there is a transmission delay until the A D conversion value is read actually For the data link processing...

Page 23: ...fication Specify whether A D conversion is enabled or disabled per channel By prohibiting the conversion for the channels which are not used the sampling time can be shortened Section 3 6 2 Can set th...

Page 24: ...g time are averaged to find a value which is then stored into the remote register Since average processing is performed with data shifted per sampling the most recent digital output value is available...

Page 25: ...completion flag RYn1 CH 2 moving average processing specifying flag RXn2 CH 3 A D conversion completion flag RYn2 CH 3 moving average processing specifying flag RXn3 CH 4 A D conversion completion fla...

Page 26: ...test mode RXnC E2 PROM write error flag Turns on if the number of E2 PROM write times exceeds its limit 100 000 times per channel If this flag has turned on this module itself has failed hardware faul...

Page 27: ...essing specifying flag Set the A D conversion system to sampling processing or moving average processing per channel Made valid on the leading edge of the initial data setting request flag RY n 1 9 OF...

Page 28: ...A D conversion enable prohibit specification 0 Section 3 6 2 RWwm 1 Input range setting 0 Section 3 6 3 RWwm 2 Moving average processing count setting 0 Section 3 6 4 Master Remote RWwm 3 Reserved 0...

Page 29: ...ampling cycle when only channels 1 and 3 are set to A D conversion enabled 2 Number of channels enabled 1ms Conversion speed at one channel 2ms 3 Operation is performed according to the setting made f...

Page 30: ...tting is 10 to 10V for all channels b15 b12 b11 b8 b7 b4 b3 b0 to CH 4 to CH 3 to CH 2 to CH 1 Input Range Set Value 10 to 10V 0H 0 to 5V 1H 1 to 5V 2H 0 to 20mA 3H 4 to 20mA 4H User range setting 1 1...

Page 31: ...RY n 1 9 4 The default setting is 4 times for all channels Bits b2 b3 b6 b7 b10 b11 b14 and b15 are ignored b15 b12 b11 b8 b7 b4 b3 b0 CH 4 CH 3 CH 2 CH 1 b14 b13 b10 b9 b6 b5 b2 b1 Ignored Ignored Ig...

Page 32: ...malfunction Ensure that no foreign matter such as chips and wire offcuts enter the module Foreign matter can cause a fire failure or malfunction Do not disassemble or modify the module Doing so can ca...

Page 33: ...human body Failure to do so may cause the module to fail or malfunction 1 Perform the tightening of the module installation screws and terminal screws in the following range Screw Location Tightening...

Page 34: ...ELECT SET switch is in the SET position Flashing 0 1s intervals indicate that the input range setting is not any of user range settings 1 to 3 0 5s intervals indicate that you attempted to make offset...

Page 35: ...ON ON 4 OFF OFF OFF OFF ON OFF OFF 10 OFF OFF ON OFF OFF OFF OFF 11 OFF OFF ON OFF OFF OFF ON 64 ON ON OFF OFF ON OFF OFF Example To set the station number to 32 set the switches as indicated below Te...

Page 36: ...the lit offset gain adjusting LEDs with the SELECT SET switch and make sure that the LED of the channel whose offset gain will be set and the OFFSET LED are lit Set all channels to any of user range s...

Page 37: ...e offset gain setting within the range indicated in POINT of Section 3 3 1 and Section 3 3 2 If setting is made outside this range the maximum resolution accuracy may not fall within the performance s...

Page 38: ...he remote I O signals and read write data are stored For details refer to the user s manual of the master module used 4 6 Facing Direction of the Module Installation The AJ65SBT 64AD module may be ins...

Page 39: ...the cables Compact with a sharp object Twist the cable excessively Pull the cable hard more than the permitted elasticity Step on the cable Place an object on the top Scratch the cable s protective la...

Page 40: ...grounding on the PLC side for the shielded line or shielded cable However depending on the external noise conditions it may be better have a grounding externally 4 8 2 Module connection example V I CO...

Page 41: ...A D conversion enable prohibit setting for the unused channel Note that changing the setting from Enable to Prohibit will reduce the sampling cycle 2 Short circuit the input terminals terminal V and...

Page 42: ...cated Instructions for details of the dedicated instructions 5 1 Programming Procedure Create a program which executes the AJ65SBT 64AD analog digital conversion by following the procedure below START...

Page 43: ...RWr1 RWr2 RWr3 2E0H 2E1H 2E2H 2E3H AJ65SBT 64AD Station number 1 Remote input RX RX00 to RX0F RX10 to RX1F Remote output RY RY00 to RY0F RY10 to RY1F Remote register RWw RWw0 A D conversion enable pr...

Page 44: ...el 1 2 Input range setting RWw1 Channel 1 0 to 5V Channel 2 User range setting 1 Moving average processing count setting RWw2 Number of moving average processing times of channel 2 16times CH 1 moving...

Page 45: ...are created under the following conditions GX Developer is used to set the network and automatic refresh parameters Using the remote device station initialization procedure registration function faci...

Page 46: ...nels 1 2 enable RWw0 0003H Input range setting channel 1 0 to 5V channel 2 user range setting 1 RWw1 51H Moving average processing count setting channel 2 16 times RWw5 10H CH 1 moving average process...

Page 47: ...initial data setting request flag RY19 Turns off initial data setting request flag RY19 Reads CH 1 digital output value RWr0 Reads CH 2 digital output value RWr1 Turns on Y91 at CH 1 range error occur...

Page 48: ...n 1 8 are initial data processing request flags The device numbers change depending on the station number Insert the remote READY and initial data processing request flags for all the stations to whic...

Page 49: ...PROGRAMMING 5 4 Program Example for Use of the QnACPU GX Developer is used to set the network and automatic refresh parameters 1 Parameter setting a Network parameter setting b Automatic refresh para...

Page 50: ...rocessing specifying flag RY01 Turns on initial data setting request flag RY19 Turns off initial data processing completion flag RY18 Turns off initial data setting request flag RY19 Reads CH 1 digita...

Page 51: ...t CH 2 range error occurrence Turns on Y93 at CH 3 range error occurrence Turns on Y94 at CH 4 range error occurrence Turns on Y95 at E2 PROM write error occurrence Turns on error reset request flag R...

Page 52: ...PA dedicated instruction Synchronization mode invalid Number of connected modules 1 AJ65SBT 64AD station information remote device station 1 station occupied station No 1 Dedicated instruction RLPA St...

Page 53: ...ter module Parameter storage starting device Reads data link status AJ65SBT 64AD data link normal AJ65SBT 64AD data link abnormal Input range setting RWw1 Moving average processing count setting RWw2...

Page 54: ...nitial data processing completion flag RY18 Turns off initial data setting request flag RY19 Reads CH 1 digital output value RWr0 Reads CH 2 digital output value RWr1 Turns on Y91 at CH 1 range error...

Page 55: ...eturn modules 1 Writes to master station Data link status when the master station PLC CPU continue AJ65SBT 64AD station information remote device station 1 station occupied station No 1 Writes to mast...

Page 56: ...moving average processing specifying flag RY00 CH 2 moving average processing specifying flag RY01 Turns on initial data setting request flag RY19 Turns off initial data processing completion flag RY1...

Page 57: ...ailed due to excess of the E2 PROM write count over its limit at the time of offset gain setting If this flag has turned on this module itself has failed hardware fault and therefore this flag cannot...

Page 58: ...e sequence program or GPPW setting Is the LED flickering at 0 1s intervals in the test mode Set all channels to any of user range settings 1 to 3 in input range setting Is the LED flickering at 0 5s i...

Page 59: ...e 6 When the AJ65SBT 64AD L ERR LED flickers at unfixed intervals Check item Corrective action Have you forgotten fitting the terminal resistor Check whether the terminal resistor is fitted If it is n...

Page 60: ...odule RUN LED off Check the error details according to the master module user s manual Is the master module RD SD LED on Check the error details according to the master module user s manual Is the ana...

Page 61: ...ed on Check the module for which SW0098 to SW009B are on Are the station number setting switches set properly Set the station number setting swiches properly Revise the parameter settings or installed...

Page 62: ...cation cable wired properlly 1 1 2 3 N N N Y Is the L RUN LED lit N Turn on the power again Turn on the power again Wire the communication cable properly Are the station number setting switches proper...

Page 63: ...000 1 0mV 0 to 20mA 5 A 4 to 20mA Current User range setting 3 0 to 20mA 0 to 4000 4 A I O characteristics Maximum resolution Input range changing Per channel All channels in batch Offset gain setting...

Page 64: ...ion information setting in the network parameters must be changed b As the remote I O signals and remote register settings are different between the two models the program of the conventional model ca...

Page 65: ...efer to Section 2 3 1 Hardware version F or later 118 4 65 109 1 0 L RUNL ERR CH1 24G DA 24V DG SLD DB AJ65SBT 64AD I V COM COM SLD TEST I V I V TEST SELECT PW RUN 2 3 4 OFFSET GAIN FG I V AG SLD COM...

Page 66: ...H1 2 OFFSET GAIN MITSUBISHI AJ65SBT 64AD DA DG 24V 24G DB SLD FG TEST TEST V I AG V I CH1 CH2 SELECT SET STATION NO B RATE 40 20 10 8 4 2 1 4 2 1 ON 3 4 FG1 COM SLD COM V I V I COM SLD COM CH3 CH4 109...

Page 67: ...nput range changing function 3 8 Input range setting 3 15 Input range setting error 6 1 M Maintenance and inspection 4 10 Maximum resolution 3 2 3 6 Module connection example 4 9 Moving average proces...

Page 68: ...T Terminal block 3 2 4 4 Terminal number 4 3 Test mode flag 3 11 Tightening torque range 4 2 Troubleshooting 6 1 Troubleshooting for the case where the ERR LED of the master station flickers 6 5 U Us...

Page 69: ...Index 3 MEMO...

Page 70: ...d 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...

Page 71: ......

Page 72: ...ecifications subject to change without notice When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission HEAD OF...

Reviews: