Toshiba E6581830 instruction manual Program example for setting the operation mode

Page 40

E658130

6.2.Program example for setting the operation mode

Example 2 shows a ladder logic to write data in the inverter.

The operation mode of station 1 inverter can be changed to network operation.

Operation mode writing code number: 2003H (hexadecimal)

Network operation set data: 0004H (hexadecimal)

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

X0 X0F X1 SW80.0

M0 X20

M300

( M0)

[ PLS M300]

Check the ready of the station 1

[ SET M301]

M301 X100F

[ MOV H2003 W102]

[ MOV H0004 W103]

[ SET Y100F]

[ RST M301]

[ SET M302]

M302 X100F

[ MOV W2 D2]

[ RST Y100F]

[ RST M302]

Write operation mode write code (2003H) to RWw2 and set data

(0004H) to RWw3.

Turn on the instruction code execution

Read reply code (RWr2) to D2 when the Instruction code execution completion flag

Turn off the instruction code execution

[ END]

Example

- 39 -

Image 40
Contents CCL003Z Introduction Handling in general Table of Contents Basic specifications OverviewCC-Link Version CC-Link VerOutline Names and functionsSLD Connection cable Installation on inverterTerminating resistor Connection of CC-Link master unit and inverter DA,DBMaximum connection number of units Page RUN ERR LED indicatorRUN 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 X0F Program example for reading the inverter statusEND 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 Disconnection error of network cable Option errorUnusual diagnosis How to check the error using the LEDs CPUCCL003Z Time Line ERR RUNTime Line RUNTime RUN ERR Line RUNERR Time RUN Time ERR