Notes, Error description – Yaskawa MotionWorks IEC Toolboxes User Manual
Page 202
Communications Toolbox: Function Blocks
MotionWorks IEC61131-3 Toolboxes: 2013-09-13
189
either the number of the
parameter value to be found or
B
Method
ERROR: Variable
(ParameterDescription_Method)
is undefined.
Method#Parameter
VAR_OUTPUT
B
Valid
BOOL
Indicates that the outputs of the function are valid.
B
Error
BOOL
Set high if error has occurred during the execution of
the function block. This output is cleared when 'Execute'
or 'Enable' goes low.
E
ErrorID
UINT
If Error is true, this output provides the Error ID. This
output is reset when 'Execute' or 'Enable' goes low.
V
Value
STRING
Value of the parameter being searched for
V
EndChar
INT
Last character position in the CommandString to be
searched
Notes
•
There are two methods available with this function block; Values can be fetched via Parameter
(Delimiter) count or by StartCharacter. The Parameter method always counts delimiters from the
beginning of the CommandString to explicitly return the correct Value. If this Function block is
executed in WHILE loop situation, it is more efficient to specify the next StartCharacter as the Number
Input by feed the previous EndChar back into the function block.
•
If Method = Method#Parameter, GetParameter will search through the command string to find the
parameter corresponding to the Number input. This method is useful for commands with fewer
parameters or when parameters are being read non-sequentially.
o
Example: CommandString = ‘MV,2,4,6’ Delimiter = ‘,’ Number = 2
When Valid = TRUE, Value = 4
•
If Method = Method#Character, GetParameter will search the command string for the next parameter
starting at the character location equal to the Number input. The EndChar output can be used as
feedback to the Number input to find the next parameter. This method is useful when parameters are
being read sequentially and provides a large performance increase when parsing a CommandString
with a large number of parameters.
o
Example: CommandString = ‘MV,2,4,6’ Delimiter = ‘,’ Number = 5
When Valid = TRUE, Value = 4, EndChar = 7
•
Further examples of both methods provided in ReName_CommandProcessor customization section.
Error Description