Mitsubishi Electronics AJ65SBT-64AD Program examples for use of the QnACPU, RX00 to RX0F

Page 53

5 PROGRAMMING

5.2.3 Program examples for use of the QnACPU

MELSEC-A

The program examples in this section are created under the following conditions. GPPW is used to set the network and automatic refresh parameters.

[Relationships between PLC CPU, master module and AJ65SBT-64AD]

PLC CPU

Device X

X100 to X10F

X110 to X11F

Device Y

Y100 to Y10F

Y110 to Y11F

Device D

D200

D201

D202

D203

Device D

D300

D301

D302

D303

 

 

Master module

Address

 

Remote input (RX)

 

E0H

 

RX00 to RX0F

 

E1H

 

 

 

 

RX10 to RX1F

 

 

 

 

 

 

 

Remote output (RY)

 

160H

 

 

 

 

RY00 to RY0F

 

161H

 

 

 

 

RY10 to RY1F

 

 

 

 

 

 

 

Remote register (RWw)

 

1E0H

 

 

 

 

RWw0

 

1E1H

 

 

 

 

RWw1

 

1E2H

 

 

 

 

RWw2

 

1E3H

 

 

 

 

RWw3

 

 

 

 

 

 

 

Remote register (RWr)

 

2E0H

 

 

 

 

RWr0

 

2E1H

 

 

 

 

RWr1

 

2E2H

 

 

 

 

RWr2

 

2E3H

 

 

 

 

RWr3

 

 

 

 

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)

RWw (A/D conversion enable/prohibit specification)

RWw1 (Input range setting)

RWw2 (Moving average processing count setting)

RWw3 (Reserved)

Remote register (RWr)

RWr (CH.1 digital output value)

RWr1 (CH.2 digital output value)

RWr2 (CH.3 digital output value)

RWr3 (CH.4 digital output value)

[Initial settings]

 

A/D conversion enabled channels

Channels 1, 2

Moving average processing channel

Channel 2 count setting = 16 times

Input range setting

Channel 1: 0 to 5V

 

Channel 2: User range setting 1

[Network parameter setting]

 

5 - 12

Image 53
Contents User,s Manual Safety Precautions Installation Precautions Starting and Maintenance Precautions Manual number is given on the bottom left of the back cover RevisionsOverview Programming Procedure Program Examples Setup and Preparation Before OperationIB-66721 Model Code13J872 IB-66251Gppw Product components This product consists of the following Memo Overview MELSEC-A Overall Configuration MELSEC-A System ConfigurationRestrictions on use of CC-Link dedicated instructions Applicable SystemApplicable master modules General Specification SpecificationPerformance Specification I/O Conversion Characteristics Voltage Input Characteristic Voltage input characteristics4mA Current input characteristics0mA Accuracy ResolutionCurrent Input Characteristic Accuracy Conversion speed AJ65SBT-64AD function list Function ListMoving average processing Sampling processingSampling time 4000 2000 Stored second time Stored third timeRemote I/O Signals List Remote I/O SignalsRemote I/O signal list Remote I/O Signal Details 1/2 Functions of the remote I/O signalsDevice No Signal Name RXn+1A Remote I/O Signal Details 2/2Initial data setting request Flag RYn+1A Error reset request flagRemote register allocation Remote Register2 A/D conversion enable/prohibit specification Address RWwm B15 B12 b11 B8 b7 B4 b3 CH.4 CH.3 CH.2 CH.1 Input range setting Address RWwm+15 CH. Digital output value Address RWrn to RWrn+3 Moving average processing count setting Address RWwm+2B15 B14 B13 B12 B11 B10 CH.4 CH.3 CH.2 CH.1 TimesPre-Operation Procedure MELSEC-A Setup and Preparation Before OperationPrecautions When Handling Create a program When making offset/gain setting, set allDIN rail DIN rail hook Name of Each Part Set Value Setting Switches Transmission Speed Setting switchesSpeed setting SwitchesStart Offset/Gain SettingPoint Facing Direction of the Module Installation Station Number SettingWiring Data Link Cable WiringWiring precautions Instructions for handling the CC-Link dedicated cablesModule connection example Maintenance and InspectionFor voltage input For current inputMemo MELSEC-A Programming Programming ProcedureProgram Examples Program example for power-on MELSEC-A Program example for initial data changing MELSEC-A Initial settings Program example for power-on Setting of automatic refresh parameters Checking Program example for initial data changing MELSEC-A Program examples for use of the QnACPU Automatic refresh parameter setting Program example for initial data changing Program examples for use of the Qcpu Q mode Program for power-on Setting results Setting results of 1 to 8 are shown below Program for initial data changing Using the Remote Input Signals to Check Errors TroubleshootingError flag RXnC has turned on Error status flagSet the voltage value to within the range 20.4 to Using the LED Indications to Check ErrorsSpecified value? 26.4V To enter the test mode? Terminals acrossIf the L ERR. LED has begun flickering though Power on againOperation? When the digital output value cannot be read Revise the parameter settings Is the L RUN LED lit? AJ65SBT-64AD AJ65BT-64AD AppendixMELSEC-A Appendix2 External dimension diagram Memo Ind ERR.LED of the master station flickers Memo Warranty User,s Manual