No viable alternative at input B10?

Hi all. Absolute newbie. I'm trying use a push button to write a 1 to a boolean address in a MicroLogix 1100. I can get a toggleSwitch to work and write a 1, but I'm struggling with the script method. Please send help.


You need to make your tag path a string with quotation marks.

Edit: And if you want to write directly to a device, you need to use system.opc.write...(). system.tag.* functions work with tags in Ignition.

{Terminology note: "tags" is an overloaded word. In most PLCs, they are named addresses. In some PLCs their names are the actual "addresses" for external protocols. In any case, when an OPC server's driver connects to a PLC, its addresses/tags/symbols/whatever are represented as OPC Items or Nodes, not "tags". In Ignition, "tags" are Ignition's internal live value data points, which may be connected to OPC Items/Nodes.}

2 Likes