Toshiba E6581830 instruction manual Program example for parameter reading

Page 44

E658130

6.7.Program example for parameter reading

Example 7 shows a ladder logic to read parameter f311 of station 1 inverter to D2. f311: Reverse-run prohibition reading code number: 1311H (hexadecimal)

The reply code at the time of instruction code execution is set to D1.

X0 X0F X1 SW80.0

( M0)

M0 X20

[ PLS M300]

M300

[ SET M301]

M301 X100F

[ MOV H1311 W102]

[ SET Y100F]

[ RST M301]

[ SET M302]

M302 X100F

[ MOV W2 D1]

[ MOV W3 D2]

[ RST Y100F]

Check the ready of the station 1

Write f311 read code (1311H) to

Turn on the instruction code execution

Read reverse-run prohibition (RWr3) and reply code (RWr2) to D2 and D1 when the instruction code execution completion

Turn off the instruction code execution

[ RST M302]

[ END]

Example 7

Refer to 5.5.8 for detail.

- 43 -

Image 44
Contents CCL003Z Introduction Handling in general Table of Contents Basic specifications OverviewCC-Link Version CC-Link VerSLD Names and functionsOutline Terminating resistor Installation on inverterConnection cable Connection of CC-Link master unit and inverter DA,DBMaximum connection number of units Page RUN LED indicatorRUN ERR Initial setting FunctionsCommunication parameters for CCL003Z C101CC-Link function setting Station number setting Baud rate settingCC-Link extended setting Run and frequency operation command Basic functionsMonitor Writing and reading the parameterI/O signal list One station is occupied CC-Link Ver.1 c122=0 RAMDouble setting is selected CC-Link Ver.2 c122=1 Quadruple setting is selected CC-Link Ver.2 c122=2Octuple setting is selected CC-Link Ver.2 c122=3 Trip history Detail of input and output signals RYnF Instruction code execution request120 OFF ST = on On ST = OFFRemote Register Assignment Instruction code 3 It is the same as instruction code 1 Monitor code RWwn is set Signal Description Instruction Codes 00EDH00FCH 00FDHEx A900 A900H, C123 C123H Details of an error code Fault record display example Description of reply code Reply codeDescription of monitor code Description of input terminal information Description of output terminal informationProgramming examples SB0 SW0RWr0 END Program example for reading the inverter statusX0F Program example for setting the operation mode Program example for setting the operation commands Program example for setting the running frequencyPLS SETProgram example for monitoring the output frequency Program example for parameter writing Program example for parameter reading Program example for trip information reading MOVProgram example for resetting the inverter at inverter error Instructions Unusual diagnosis Option errorDisconnection error of network cable How to check the error using the LEDs CPUCCL003Z Time Line ERR RUNTime Line RUNTime RUN ERR Line RUNERR Time RUN Time ERR