I am having difficulties with creating the following part of an application in MAPS: While one of the PLC bits is active, count the number of times second bit has been in ON state.
Mitsubishi Electric FX5U
Both of the bits are contained in their respective marshal scanned at rate of 500ms.
Counting is performed by connecting both of data elements of said bits to inputs of the logic AND spider (“input” and “logical result”) and passing the result of logical operation to a Digital Agent. Digital agent is not scanned, since it is used merely within MAPS, and acts as an “input tag” for a Counter Agent.
Logic AND spider settings are following:
-Operator ( = )
-Constraint ( 1 )
I assume that when performing logical AND operation with two operands, inputs “input” and “logical result” are interchangeable. Is this the case?
Issue 1: PLC bit whose number of times in ON state is counted keeps changing its state on its own within MAPS when the button is held (logical 1). Digital Agent (output of the AND spider) also alternates between 1 and 0 while the bit is active, however, at a different rate.
Is it required to scan the digital agent used as an input tag of a counter within MAPS to prevent this?
Issue 2: When using logical AND spider to AND two logical states, sometimes an error occurs:
“Logical AND Spider: Specified cast is not valid.” disconnecting one input of the spider and connecting it to another seems to resolve the issue - the error is no longer displayed. Is this a type of conversion error?
Thank You in advance for any feedback on the matter.