Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python for Omron-Fins
#1
Sorry for my bad english. I'm trying to read data from an omron-fins plc with a python scripts. I read something but that data are incomprehensible. I use this script

import fins.udp
import time


fins_instance = fins.udp.UDPFinsConnection()
fins_instance.connect('192.168.1.211')
#i don't know what i had to write in this fields
fins_instance.dest_node_add=211
#i don't know what i had to write in this fields
fins_instance.srce_node_add=30

mem_area = fins_instance.memory_area_read(fins.FinsPLCMemoryAreas().CIO_WORD,b'\x00\x51\x06')
print(mem_area)
that code give me this result :
Output:
b'\xc0\x00\x02\x00\x1e\x00\x00\xd3\x00`\x01\x01\x00\x00\x00\x00'
Someone know how can i read understandable integer values?
buran write Jan-14-2021, 05:56 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Reply


Messages In This Thread
Python for Omron-Fins - by carlomatto - Jan-14-2021, 05:15 PM
RE: Python for Omron-Fins - by Larz60+ - Jan-14-2021, 08:57 PM
RE: Python for Omron-Fins - by DeaD_EyE - Jan-15-2021, 03:29 PM
RE: Python for Omron-Fins - by carlomatto - Jan-18-2021, 09:59 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020