RSLogix 5000 Problem: Mytagno Not Updating

  • Thread starter Thread starter Jobrag
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 4K views
Jobrag
Messages
551
Reaction score
28
Any RSLogix 5000 users out there I have a problem.
I have a line of code Mytagno := I/Omoduletagno
If I dummy in the input I/Omoduletagno changes but Mytagno doesn't, I don't see how this cannot work.
Any ideas please.
 
Physics news on Phys.org
It seems to me that you are trying to use a variable whose name is I/Omoduletagno. I don't know anything about RSLogix 5000, but most programming languages allow only a limited set of characters that can be used to create variable names. Characters that are typically not allowed include +, -, *, /, and others, since these are operators.

The RSLogix compiler/interpreter probably thinks you want to divide I by Omoduletagno, and neither of these names is declared or initialized.

Names that would probably be OK are IOModuleTagNo and I_O_ModuleTagNo.