Data register modbus Rs485 input command

Discuss Stepper motors, Drivers, Controllers, GUI's and related Accessories here.
Post Reply
Almighty
Posts: 5
Joined: Thu Jun 18, 2020 2:53 am

Data register modbus Rs485 input command

Post by Almighty » Mon Jun 22, 2020 2:51 am

Dear Sir .
I have problem with my machine ,stepper motor Ard CD driver.it communication with plc FX series with FX 485 Adb ,
When command Return to home position cannot be done,what wrong with command ? It use 07DH data register .
Anyone can help me please,

Thank you for your attention

Best regards.

om_tech_support_KR
Posts: 87
Joined: Thu Jan 11, 2018 3:03 pm

Re: Data register modbus Rs485 input command

Post by om_tech_support_KR » Mon Jun 22, 2020 11:00 am

Hello,

What command are you writing to the 007Dh register? Also are you writing a 0 to it before you send the Home command? If you have the MEXE02 software you can use the Status I/O monitor to verify which inputs you are turning on with the RS485 commands.

Almighty
Posts: 5
Joined: Thu Jun 18, 2020 2:53 am

Re: Data register modbus Rs485 input command

Post by Almighty » Mon Jun 22, 2020 9:36 pm

Thank sir for your reply.
I Dont have Software MEXE02.

I use Adprw modbus Read/write, ( ADPRW H1 H6 H7D K0 D710 ).and data D710 from other program,
- Mov K256 D710 ( For Reset fault ).
- Mov K0 D710 ( For stop Motor ).
- Mov K128 D710 ( For Fault ).
- Mov K64 D710 ( For Command Home position ).
- Mov K3 D710 ( For start Motor ).
- Mov K7 D710 ( For Job Rotasi M0 ,16 Point ).
- Mov K5 D710 ( For Job Rotasi M1 , 16 Point ).
- Mov K8192 D710 ( FOR JOG - minus )
- Mov K4096 D710 ( For Jog + plus ).
- Mov H8000 D710 ( For Manual Backward Motor ).
- MoV K16384 D710 ( For Manual Forward motor ).

When I push Button home position ,First Step motor Rotate Forward CCW ( or plus value ),and then Stop Motor ( After Reach sensor For mechanical Zero ,and motor rotate approximately 25 degree,After That Only Stop ,Cannot Rotate CW Direction Again through Sensor Zero mechanical ( 0 value And reach sensor Zero ).

When I check on program ladder, Still stop on program MOV k64 D710.
But when I test With manual Home with Console OPX-2A Can working and normaly To get Home pos .( 0 Value and Sensor Zero ).

om_tech_support_KR
Posts: 87
Joined: Thu Jan 11, 2018 3:03 pm

Re: Data register modbus Rs485 input command

Post by om_tech_support_KR » Tue Jun 23, 2020 12:15 pm

Hello,

Can you verify if you are writing a 0 before you send a command in the 007Dh register. If you don't write a 0 before the Home command and there is another command there it won't read correctly. Are you getting any alarms on the driver?

Almighty
Posts: 5
Joined: Thu Jun 18, 2020 2:53 am

Re: Data register modbus Rs485 input command

Post by Almighty » Tue Jun 23, 2020 6:15 pm

Yes sir,
yes right before being given the command return home , I give the command 0 to the data register 07DH.After That motor Cannot rotate to return home ,and program still stop at the data register 64, which confused me, input the command register 07DH for return home ? if I read in accordance with the instruction manual input command register 07DH, BIT 4 (NET - IN4 ).
But if I try to command through I/ O Signal Input No 0 pin 1 1 of CN 8 it can return Home .But ouput signal for home Not ON .

om_tech_support_KR
Posts: 87
Joined: Thu Jan 11, 2018 3:03 pm

Re: Data register modbus Rs485 input command

Post by om_tech_support_KR » Wed Jun 24, 2020 12:11 pm

Hello,

Could you send me the query you are sending for the Home command? There is an example of this on page 251 of the manual I link below for reference. Also which register are you referring to by data register 64? Are you able to run any of the programmed positions or jog the motor via RS-485?

https://www.orientalmotor.com/products/ ... 340-3E.pdf

Almighty
Posts: 5
Joined: Thu Jun 18, 2020 2:53 am

Re: Data register modbus Rs485 input command

Post by Almighty » Wed Jun 24, 2020 8:17 pm

Yes Sir,
I have make simple programme to drive jog with modbus rs 485 input command 07Dh with value 12 or 13 .and can normally rotate.I have send file about description sequence home pos before problem.

STEP 1.COMMAND ROTATE CW WITH FUNCTION BACKWARD
DRIVE INPUT COMMAND REGISTER 07DH
- VALUE REGISTER H8000 ( +_ 4000 )
DRIVE INPUT COMMAND REGISTER 02CBH
- VALUE REGISTER 1

STEP 2. MOTOR STOP .INPUT COMMAND REGISTER 07DH
- VALUE REGISTER 0

STEP 3. MOTOR ROTATE CCW WITH COMMAND 07DH
- VALUE REGISTER 64 ( But cannot rotate )

Maybe can you suggest with new arrangement sequence To drive Home pos with modbus 485.

Thanks you very much for your reply

Best Regards

om_tech_support_KR
Posts: 87
Joined: Thu Jan 11, 2018 3:03 pm

Re: Data register modbus Rs485 input command

Post by om_tech_support_KR » Thu Jun 25, 2020 2:01 pm

Hello,

For your step 3 when you write a decimal value 64 to 007Dh you will be turning on Bit6 which factory setting will be the FREE input which cuts power to the motor. If you want to run a Home sequence then you will have to write a decimal value 16 to 007Dh. This will turn on the Bit4 Home.

Almighty
Posts: 5
Joined: Thu Jun 18, 2020 2:53 am

Re: Data register modbus Rs485 input command

Post by Almighty » Mon Jun 29, 2020 2:56 am

Good afternoon

So after holiday and I Have trial Again, I write decimal value 16 to 07DH ( Change 64 to 16 decimal) ,The motor can Rotate to return home normally and machine can Auto running Normally and I make new output signal 07FH to get Confirmation .
Thank you very much for your advice. 👍👍👍
And Succes for you
Best Regards.

Post Reply