Hello everyone, I'm Tom Trinh, Senior Application Engineer for Valin Corporation. Today I will illustrate how to send Modbus RTU command to an IAI PCON controller to control the actuator. Actually, it's a pull press RCP6- RRA actuator.
OK, So what you see in front of you here is the RCP6-RA actuator and this is the CON controller that I have here. I have the cable, this is a motor and encoder cable connected back to the controller here with some IO’s as well. And I have the programming port connected to my USB of my laptop. OK, so that's a setup that we have. OK, so right now I'm going to command it to go 50mm. So to do that again, the slave address here is one because the Rotary switch on here is set at 0. The function code, the Modbus function code is 010 and the starting address is 9901 for the position, the bandwidth, the speed, the ACCEL, DECEL and so forth. So let's execute it.
I'm going to put in 50. Let's say 5040. OK, that means 50.40mm. All right, I'm going to go up here. I'm going to select 10 here already. OK, 9901 is the beginning of the register. I'm going to execute it and it's not working. Oh, I didn't hit enter. That's why. Here we go. See how it's moving, right. And I know it's it's going to move to 50.4mm, right. I can tell it to go to 0000, which is 0. Again, I'm going to command it to go there. Here we go, it is going home which is 0. So with this I can put whatever the distance I want to. So let's say I want to go now 5678 and I'm going to increase the speed from 10mm per second to 7000, which is 700mm per second.
Hit enter, I'm going to execute it. here you go, see how fast it goes. Right now, if you want to query wherever the position is, all you need to do is go up here, change the address to 9001. That's the beginning of it. And then I'm going to do a read, which is the function 03 in MODBUS Read Holding register. And I'm going to tell that I need only two register for the current position. OK, And I'm going to do it right now. And Voila 5678. So that's how you can query the current position of the actuator as well as commanding it to go to whatever their length the position is with the speed that you desire, as well as the ACCEL and DECEL.
If you have any questions please call (855) 737-4716 or fill out our online form if you have any questions.