User`s manual
4 - 32
4.8.1 Writing/reading protocol settings
4 PREDEFINED PROTOCOL SUPPORT FUNCTION
GX Works2
■ Workaround when the Q series C24N/L series C24 module detects a protocol
setting data error
The settings of editable protocols may not be correct when the Q series C24N/L series C24 module
detects a protocol setting data error after the protocol settings are written to the module.
In such case, correct the protocol settings according to the following procedure and rewrite them to the
module.
Operation
1. Confirm the protocol number, packet number, and element number of the detected error in the
protocol setting data error information (buffer memory 4086
H to 4089H) of the Q series C24N/L
series C24 module.
2. Confirm whether or not the following conditions are met in the packet setting in which the error
has been detected.
When any elements of No.1 and any elements of No.2 described in the following table are in
the same packet, No.1 must be placed before No.2.
3.Modify the protocol settings, and rewrite them to the module.
● Settings which may cause a 'protocol setting data error'
A protocol setting data error may occur when any of the following data are set and written to the Q series C24N
module with the serial number of which the first five digits are '10122'.
● Execution of write to module function during execution of CPRTCL instruction
An error may occur when the protocol setting data is written to a module during execution of the CPRTCL
instruction.
● Data not to be written to module
The following data cannot be written to a module. Save these data in a protocol setting file.
• Manufacturer
•Packet Name
• Type, Version, Explanation in the protocol detailed setting
• Element Name in the packet setting
No. Setting
1
• Conversion Variable (Fixed number of data, Fixed number of digits (1 to 10
digits), No sign character)
• Conversion Variable (Fixed number of data, Fixed number of digits (1 to 10
digits), Variable decimal point)
• Conversion Variable (Fixed number of data, Variable number of digits,
Number of data is 1, Delimiter is comma or space)
2
• Non-conversion Variable (Variable length)
• Conversion Variable (Variable number of data)
• Conversion Variable (Fixed number of data, Variable number of digits,
Number of data is 1, No delimiter)
• Conversion Variable (Fixed number of data, Variable number of digits,
Number of data is 2 or more)
• Non-verified Reception (Variable number of characters)
Element type Setting
Conversion
Variable
• "Sign" is 'Signed'
• "Number of Decimals" is 1 to 9 or 'Variable Point'
• "Delimiter" is 'Comma' or 'Space'
Non-verified
Reception
• "Data Length" is '0' (variable number of characters)