Omron plc cj2m and raspberry pi ethernet connection

mettabix

Member
Join Date
Mar 2021
Location
bangalore
Posts
3
Hey guys,
I'm new to PLC, Although I was wondering if I could establish a handshake between the CJ2M and Raspberry pi over Ethernet IP. I have searched online for solutions, most of them are considering adding Modbus FB. The issue is I cant add more FB. Is there a smart way to do this?

Regards,
Mo
 
Thank you lostcontrol, I actually used the link you gave and ended up with an attribute error. I'm sharing the modified code I used. let me know if u can make out the issue.
Thanks in advance.

import fins.udp
import time

fins_instance = fins.udp.UDPFinsConnection()
fins_instance.connect('192.168.137.5')
fins_instance.dest_node_add=0
fins_instance.srce_node_add=1

fins_instance.memory_area_read(fins.FinsPLCMemoryAreas().CIO_WORD,b'\x00\x64\x00')
print(mem_area)



The error :
AttributeError : 'FinsPLCMemoryAreas' object has no attribute 'CIO_WORD'
 

Similar Topics

I have PLC Omron CJ2M with OD211 module. I want to use the pulse output and PWM output and this module. But i confuse how to activated this, i...
Replies
0
Views
111
I have a project to control the speed of motor DC using PWM Output on PLC and when im on working i have a several trouble and of of them is the...
Replies
6
Views
220
Hi all, Anyone know how to access PLC Omron data memory Using SNMP? I use CJ1M-EIP21 for SNMP communication, but don't have MIB or OID file to...
Replies
0
Views
668
Hello everyone, I would like advice on the setup below: CJ2M PLC: 192.168.10.01 (Subnet: 255.255.255.0) ETN21 - 192.168.20.1 (Subnet...
Replies
6
Views
1,864
Howdy, I’m working with an Omron CJ2M PLC and am hoping you can point me in the right direction… I’m trying to get the NS10 HMI/PT to talk to...
Replies
2
Views
1,399
Back
Top Bottom