Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OUTPUT_DWORD reading PLC memory? #62

Closed
LanderUrgoiti opened this issue May 23, 2024 · 3 comments
Closed

OUTPUT_DWORD reading PLC memory? #62

LanderUrgoiti opened this issue May 23, 2024 · 3 comments
Assignees
Labels
question Further information is requested TNC

Comments

@LanderUrgoiti
Copy link

Hello:

I have been trying to get some values that we write in the PLC memory but I am unable to find them.
I have loked in the TNC640 control and I can see that calling this function I get the correct values from the DWORD table:

AAA = con.read_plc_memory(first_element=27,mem_type=pyLSV2.MemoryType.DWORD, number_of_elements=1)
print(AAA)

The issue is that I am looking for a DWORD stored in another table ODWORD or something like that. I am guessing this means OUTPUT_DWORD since I can see the OUTPUT_WORD values correctly using this

AAA = con.read_plc_memory(first_element=27,mem_type=pyLSV2.MemoryType.OUTPUT_WORD, number_of_elements=1)
print(AAA)

My question is, Is thete a way to get OUTPUT_DWORD values

Fig1
Fig2

@drunsinn drunsinn self-assigned this May 30, 2024
@drunsinn drunsinn added question Further information is requested iTNC TNC and removed iTNC labels May 30, 2024
@drunsinn
Copy link
Owner

I think I understand what you mean and hope that it is as easy as to add a new data type to the code based on the settings of the regular output words. Currently I can't disturb our machines so it would be grate if you could try out the changes I made in pull request #63 before I merge them.

@drunsinn
Copy link
Owner

@LanderUrgoiti have you been able to confirm if the changes in #63 work?

@drunsinn
Copy link
Owner

support for output d word was added with v1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested TNC
Projects
None yet
Development

No branches or pull requests

2 participants