Mitsubishi Electronics AJ65SBT-64AD user manual Program for power-on

Page 57

5 PROGRAMMING

MELSEC-A

[Automatic refresh parameter setting]

(1) Program for power-on

At power-on, the initial setting of the AJ65SBT-64AD can be made easily using the remote device station initialization procedure registration function.

(a)Setting the target station number

Set the station number to which initial setting will be made. Set the target station number to "1".

(b)Setting the procedure registration

When the initial data processing request flag (RX(n+1)8) turns on and the remote device station initialization procedure registration (SB0D) is set, the following data are registered to the AJ65SBT-64AD.

Procedure Execution Condition

Execution

Number

 

Channels 1, 2 are set to A/D conversion enable.

1)

 

Input range setting of channel 1 is set to 0 to 5V.

2)

 

Input range setting of channel 2 is set to user range setting 1.

 

 

Initial data processing request flag (RX(n+1)8) turns on

Moving average processing count of channel 2 is set to 16 times.

3)

 

Channel 2 is set to moving average processing.

4)

 

Initial data processing completion flag (RY(n+1)8) is turned on.

5)

 

Initial data setting request flag (RY(n+1)9) is turned on.

6)

Initial data processing request flag (RX(n+1)8) turns off

Initial data processing completion flag (RY(n+1)8) is turned off.

7)

Initial data setting completion flag (RX(n+1)9) turns on

Initial data setting request flag (RY(n+1)9) is turned off.

8)

5 - 16

Image 57
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 ConfigurationApplicable System Applicable master modulesRestrictions on use of CC-Link dedicated instructions General Specification SpecificationPerformance Specification I/O Conversion Characteristics Voltage Input Characteristic Voltage input characteristicsCurrent input characteristics 0mA4mA 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 Remote I/O signal listRemote I/O Signals 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 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? AJ65SBT-64AD AJ65BT-64AD AppendixMELSEC-A Appendix2 External dimension diagram Memo Ind ERR.LED of the master station flickers Memo Warranty User,s Manual