Chapter 8 Logic Instructions 
8-239 
Parameter Name  Timing for changing to TRUE  Timing for changing to FALSE 
Done 
  When the configuration of 
parameters is correct and 
Execute changes from FALSE 
to TRUE. 
  When Execute changes from TRUE to 
FALE. 
Error 
  When the configuration of 
parameters is incorrect and 
Execute changes from FALSE 
to TRUE. 
  When Execute changes from TRUE to 
FALE.   
  When Execute is re-triggered after the 
parameter configuration is modified 
 
  Output Update Timing Chart 
Execute
Done
Error
ErrorID
Case1 Case2
 
Case 1: If the configuration of parameters is correct, Done changes from FASLE to TRUE as Execute 
changes from FASLE to TRUE. 
Case 2: If an error occurs in the configuration of parameters, Done is FASLE and Error changes from 
FALSE to TRUE as Execute changes from FASLE to TRUE. 
  Function 
RS485_Link_Config is used to configure parameters for 485 communication Link. The firmware of V1.01 
and above supports the function. 
  Precaution   
1.  ObjType is the data type of the read and written parameter. When ObjType is 0, it means to read and 
write the word register of the slave. The range of Write_Length and Read_Length is 0~100 and the 
values of Write_Length and Read_Length can not be 0 at the same time.   
When ObjType is 1, it means to read and write the bit register of the slave. The range of Write_Length 
and Read_Length is 0~256 and the values of Write_Length and Read_Length can not be 0 at the 
same time. For local addresses, you can directly fill addresses, variables combined with addresses, 
arrays combined with the starting addresses. 
 
2.  For local address to fill the %MB address, you can only fill the low byte of the %MW address rather 
than the high byte. 
3.  For the register address of the slave, you can directly fill the MODBUS address and variable. 
4.  For the offset in the word operation, the actual address is calculated by word. For the offset in the bit 
operation, the actual address is calculated by bit. 
For example: 
  Actual address calculated via word offset :   
When the address is  %MW0  and  the offset is 15, the actual operation address is 
%MW15=%MW (0+15).   
  Actual address calculated via bit offset:   
When the address is %QW0 and the offset is 7, the actual operation address is %QX0.7. 
5.  If you choose to read and write the word register of the slave, the %MW register of the local device 
can be regarded as the storage register for reading and writing data. The range of the storage register 
is %MW0~%MW32767. If the range is exceeded or other register is used, an error will occur in the 
instruction.