2017-03-02

Using Omron MX2 / WJ200 in Mach3 using modbus via RS485


This is just a note for myself on how to set up the Omron MX2 (identical to the Hitachi WJ200) to be controlled via RS482 from MACH3.
It is based on:
 I have not tested these with an Omron MX2 yet!!!

Wiring up the VFD:

RS485 wiring:

T+ = SP
T- = SN
(VFD only support half dublex)

RS485 register settings:

Group C
C096 "Communication Selection"= "00-Modbus RTU"
C071 "Communication Speed"= XXX
C072 "Modbus Address"="1"

Group A
A001 "Frequency source" = "03: modbus network"
A002 "Run command source" = "03: modbus network"

Click "Download All (PC->Device)"
Save EPROM: yes

MACH3 Config->Ports and Pins:

[X] Modbus Input/Output support
[X] Modbus Plugin support
Restart MACH3

MACH3 Function Cfgs->Setup serial modbus control:

Port Number = RS485 serial port number
Baud rate = XXX
Timeout > 30ms


Cfg #0
[x] enabled
Device: "start/stop"
Adress Modbus(Var):  0
Refresh Timeout: 25ms
"Output Coils"

Cfg #1
[x] enabled
Device: "frequency"
Adress Modbus(Var):  1 (stated as 001h in VFD manual, chapter B-4-2)
Refresh Timeout: 25ms
"Output Holding"

Cfg #2
[x] enabled
Device: "trip status"
Adress Modbus(Var):  3? (stated as 004h "Inverter Status B" in VFD manual)
Refresh Timeout: 25ms
"Input HoldingCoils"
("3" is correct because it is the third register. 0x001+0x002 are "1"???) 

[X] Modbus Run
"Apply"
You should see: "no error"

MACH3 Operator->Brain Editor #0:


"+"
"DRO"
DRO-Value = 99-RPM Ratio

Select it
"+"
"Formula"
"A*40000"  for a 400Hz spindle with .01 resolution
"A*100000"  for a 1KHz spindle with .01 resolution

Select it
"T"
"Modbus"
"Output"
"Serial plugin enabled"
"Cfg#0"

MACH3 Operator->Brain Editor #1:

"+"
"Output"
"Output 1" ("spindle run" depends on your MACH3 setup)

Select it
"+"
"Formula"
"A*65280"

Select it
"T"
"Modbus"
"Output"
"Serial plugin enabled"
"Cfg#1"


MACH3 Operator->Brain Editor #2:

"+"
"Modbus"
"Input"
"Serial plugin enabled"
"Cfg#2"

Select it
"+"
"Compare Immediate"
"equal to"
"2"  (0x003 "Inverter Status B"="2 tripped" in VFD manual)

Select it
"T"
"Input"
"EStop"


Save brain file

MACH3 Operator->Brain Comtrol:

reload all
select brain file
[x] enabled
OK


MACH3 Config->Spindle Pulley:

Check "max speed"

Keine Kommentare: