Mitsubishi Electronics AJ65SBT-64AD user manual Initial settings

Page 48

5 PROGRAMMING

MELSEC-A

5.2.2 Program examples for use of the ACPU/QCPU (A mode) (dedicated instructions)

The program examples in this section are created under the following conditions. A sequence program 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

D456

D457

D458

D459

 

 

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

5 - 7

Image 48
Contents User,s Manual Safety Precautions Installation Precautions Starting and Maintenance Precautions Revisions Manual number is given on the bottom left of the back coverOverview Setup and Preparation Before Operation Programming Procedure Program ExamplesModel Code IB-6672113J872 IB-66251Gppw Product components This product consists of the following Memo Overview MELSEC-A MELSEC-A System Configuration Overall ConfigurationApplicable System Applicable master modulesRestrictions on use of CC-Link dedicated instructions Specification General SpecificationPerformance Specification I/O Conversion Characteristics Voltage input characteristics Voltage Input CharacteristicCurrent input characteristics 0mA4mA Resolution AccuracyCurrent Input Characteristic Accuracy Conversion speed Function List AJ65SBT-64AD function listSampling processing Moving average processingSampling time 4000 2000 Stored second time Stored third timeRemote I/O Signals Remote I/O signal listRemote I/O Signals List Functions of the remote I/O signals Remote I/O Signal Details 1/2Remote I/O Signal Details 2/2 Device No Signal Name RXn+1AInitial data setting request Flag RYn+1A Error reset request flagRemote Register Remote register allocation2 A/D conversion enable/prohibit specification Address RWwm Input range setting Address RWwm+1 B15 B12 b11 B8 b7 B4 b3 CH.4 CH.3 CH.2 CH.1Moving average processing count setting Address RWwm+2 5 CH. Digital output value Address RWrn to RWrn+3B15 B14 B13 B12 B11 B10 CH.4 CH.3 CH.2 CH.1 TimesMELSEC-A Setup and Preparation Before Operation Pre-Operation ProcedurePrecautions When Handling Create a program When making offset/gain setting, set allDIN rail DIN rail hook Name of Each Part Setting switches Set Value Setting Switches Transmission SpeedSpeed setting SwitchesOffset/Gain Setting StartPoint Station Number Setting Facing Direction of the Module InstallationData Link Cable Wiring WiringWiring precautions Instructions for handling the CC-Link dedicated cablesMaintenance and Inspection Module connection exampleFor voltage input For current inputMemo Programming Procedure MELSEC-A ProgrammingProgram 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 Troubleshooting Using the Remote Input Signals to Check ErrorsError flag RXnC has turned on Error status flagUsing the LED Indications to Check Errors Set the voltage value to within the range 20.4 toSpecified value? 26.4V To enter the test mode? Terminals acrossPower on again Operation?If the L ERR. LED has begun flickering though When the digital output value cannot be read Revise the parameter settings Is the L RUN LED lit? Appendix AJ65SBT-64AD AJ65BT-64ADMELSEC-A Appendix2 External dimension diagram Memo Ind ERR.LED of the master station flickers Memo Warranty User,s Manual