4-20ma current receiver

So i purchased the unit above thinking I could count (in node-red) packages coming off of our manufacturing line. I am able to get counts passing through a 4-20ma prox sensor, but it appears that I am not getting a signal fast enough from the sensor above to count our products (it misses most counts). When I hold my hand infront of the 4-20ma or move my hand slowly through the ir beam, I get the count most of the time.

After checking the raw data from node-red I also do not see the increase in mA at all when quick moving objects go past the 4-20ma prox sensor (the prox sensor does indicate the change). I have ‘sleep’ mode disabled (normal) in the xbee comm module.

image

The prox sensor has power. The 4-20ma receiver has perm. power.

Am I missing anything? Is this 4-20ma current the right tool for the job?

Hi,
What the update rate of the counts ?
The 4-20mA has an ADC which takes a lot of samples to calculate 4-20mA values and then it sends it over wireless.

Whats the part number of the proximity sensor.

Thanks

Where would I find the update rate of the counts? In node red I have it counting when the node in node-red receives data from the sensor:

[{"id":"cecf92ce.e8f368","type":"ncd-wireless-node","z":"f976af92.ddfec","name":"4-20ma Sensor","connection":"4ab18c02.c65acc","config_comm":"4ab18c02.c65acc","addr":"00:13:a2:00:41:a8:43:f3","sensor_type":"3","auto_config":true,"node_id":0,"delay":"1","destination":"0000FFFF","power":4,"retries":10,"pan_id":"7FFF","change_enabled":"","change_pr":"0","change_interval":"0","cm_calibration":"60.6","bp_altitude":"0","bp_pressure":"0","bp_temp_prec":"0","bp_press_prec":"0","amgt_accel":"0","amgt_mag":"0","amgt_gyro":"0","impact_accel":"0","impact_data_rate":"4","impact_threshold":25,"impact_duration":1,"activ_interr_x":1,"activ_interr_y":2,"activ_interr_z":4,"activ_interr_op":8,"filtering":0,"data_rate":5,"time_series":0,"reading_type":1,"x":320,"y":120,"wires":[["6d9a7d17.002864","ed3f4823.a827f8","692595c3.848f74","564b5444.20d264","43b10c2f.d29e5c","2d62e937.244796"]]},{"id":"6d9a7d17.002864","type":"debug","z":"f976af92.ddfec","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":540,"y":40,"wires":[]},{"id":"6b393c1.7180944","type":"debug","z":"f976af92.ddfec","name":"mA","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":770,"y":100,"wires":[]},{"id":"ed3f4823.a827f8","type":"change","z":"f976af92.ddfec","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"msg.payload.mA","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":100,"wires":[["6b393c1.7180944","88907e6c.6cd028","34fb47a5.b1e7a8"]]},{"id":"c604b02f.d66b38","type":"debug","z":"f976af92.ddfec","name":"adc","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":770,"y":160,"wires":[]},{"id":"692595c3.848f74","type":"change","z":"f976af92.ddfec","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"msg.payload.adc","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":160,"wires":[["c604b02f.d66b38"]]},{"id":"c1517a7e.c8237","type":"debug","z":"f976af92.ddfec","name":"byteOne","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":780,"y":220,"wires":[]},{"id":"564b5444.20d264","type":"change","z":"f976af92.ddfec","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"msg.payload.byteOne","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":220,"wires":[["c1517a7e.c8237"]]},{"id":"f4550950.e29cf","type":"debug","z":"f976af92.ddfec","name":"byteTwo","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":780,"y":280,"wires":[]},{"id":"43b10c2f.d29e5c","type":"change","z":"f976af92.ddfec","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"msg.payload.byteTwo","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":280,"wires":[["f4550950.e29cf"]]},{"id":"2d62e937.244796","type":"change","z":"f976af92.ddfec","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"msg.payload.adc*0.0006934","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1030,"y":120,"wires":[["b32843f.31a504"]]},{"id":"b32843f.31a504","type":"debug","z":"f976af92.ddfec","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1220,"y":120,"wires":[]},{"id":"88907e6c.6cd028","type":"function","z":"f976af92.ddfec","name":"Count","func":"if (msg.payload > 0.5) {\nvar count=context.get('count') || 0;\ncount +=1;\nmsg.payload1=\"My Count \"+count;\ncontext.set('count',count);\nreturn msg;\n}","outputs":1,"noerr":0,"x":1230,"y":200,"wires":[["7bdd8181.5470a","c3a5a102.d87d5"]]},{"id":"7bdd8181.5470a","type":"debug","z":"f976af92.ddfec","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload1","targetType":"msg","x":1430,"y":200,"wires":[]},{"id":"c3a5a102.d87d5","type":"ui_text","z":"f976af92.ddfec","group":"5e89829e.ceeea4","order":3,"width":0,"height":0,"name":"","label":"Count","format":"{{msg.payload1}}","layout":"row-spread","x":1430,"y":240,"wires":[]},{"id":"34fb47a5.b1e7a8","type":"ui_chart","z":"f976af92.ddfec","name":"mA","group":"5e89829e.ceeea4","order":4,"width":0,"height":0,"label":"mA","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"0.5","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":1040,"y":40,"wires":[[]]},{"id":"4ab18c02.c65acc","type":"ncd-gateway-config","z":"","name":"Modem 2","comm_type":"tcp","ip_address":"10.0.1.54","tcp_port":"2101","port":"","baudRate":"115200","pan_id":"7FFF","rssi":false},{"id":"5e89829e.ceeea4","type":"ui_group","z":"","name":"Default","tab":"c04f3e97.d3d018","disp":false,"width":"6","collapse":false},{"id":"c04f3e97.d3d018","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":2,"disabled":false,"hidden":false}]

Part No. is PR55-5A

i meant how frequently the proximity sensor changing its state ?

Thanks

About every 0.75 to 1.25 seconds.

whats the delay value set to in the sensor ?
you can set it to 0.

Delay is set to 0 using AlphaStation.

looks like the proxy sensor is updating faster than the 4-20mA receiver. thats why it catches the slow updates but not the fast one.

generally for counter application i recommend something like this

the proxy sensor has 4-20mA output but you can use a 249 ohm resistor to convert it into voltage.

Thanks, was already looking at that. Ill get one one on order