Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bahpulo

Pages: [1]
1
Technical support / Re:Control outputs using DM
« on: June 03, 2012, 11:23:48 AM »
Gary thanks for the feedback , i got it working now. I got the trigger wrong for the custom function. Many Thanks.

2
Technical support / Re:Control outputs using DM
« on: June 01, 2012, 12:54:37 PM »
I have tried with no success can you refer me to any example, my ladder diagram may contribute but i don't know how to troubleshoot the problem.

3
Technical support / Control outputs using DM
« on: May 30, 2012, 12:15:44 PM »
Am back again, can anyone help. I want to be able to switch an output on and off using DM. How can I possibly do this?
I used the following codes below but seems not to be working.
if DM[1]=1 then
setio pump
endif

if DM[1]=0 then
ClRIO pump
endif

4
Technical support / Re: 32 bit modbus slave
« on: May 26, 2012, 10:43:34 AM »
Finally i was able to connect to the flow meter using the nano 10. Turns out that the relay that invokes the reading of the registers should be normally close instead of normally open as on the demo examples. Many thanks

5
Technical support / Re: 32 bit modbus slave
« on: May 25, 2012, 04:31:14 AM »
Thanks for the response. My flow meter can do both RTU and Ascii. I have tried the following codes with no success.

FOR MODBUS RTU
DM[2]= READMODBUS(11,1,1442)
DM[3]= READMODBUS(11,1,158)

FOR MODBUS ASCII
DM[2]= READMODBUS(1,1,1442)
DM[3]= READMODBUS(1,1,158)

I am now stuck and i don't know what to do. Can i send you the manual for the flow meter?

6
Technical support / Re: 32 bit modbus slave
« on: May 23, 2012, 04:50:40 AM »
Thanks for your reply, i must say that am new to plcs. Before going to the 32 bit problem, first of all i would like to establish a connection between the nano and the flow meter and read a 16 bit register into the DM. I found out that the readmodbus is not working between the two devices.

If i connect either the flow meter or nano plc using the rs485 to usb on my  pc, i would then get a reading with my scada software. This means that my serial setup is right. Please find here attached my ladder diagram, i may be doing something wrong, also find here the custom function codes used.

Cusfn for rs485;
SETBAUD 1,&H03

Cus_auto;
if DM[1]=1 then
setio pump
endif

if DM[1]=0 then
ClRIO pump
endif

rdmod1s;
DM[2]= READMODBUS(1,1,1442)
DM[3]= READMODBUS(1,1,158)



7
Technical support / 32 bit modbus slave
« on: May 21, 2012, 12:01:25 PM »
Can anyone please help? I have a flow meter which can speak either modbus ASCII or modbus rtu. The data format to read the modbus registers through the rs485 are in the form of real4. I am using a nano 10 plc to connect to this flow meter, so that I can read the registers into the nano 10 plc. I need to be able to do this so that my scada software can read data from the nano 10. However since nano 10 is 16 bits, I  want to know how I can read 32 bit real registers from the flow meter  into the nano 10 using modbus ASCII or RTU through the rs485 port.

Pages: [1]