IntroductionThis article provides details for the use and application of the Fn06 Write Register (Modbus/TCP) function block. Using this function block with the CP1L-E provides an easy means to write a value to a Modbus register. This function block can be of particular use in PLC-based motion control applications often found in packaging machinery. To see a machine case study of a packaging application that uses Modbus and PLC-based motion control, visit the link below. industrial.omron.eu/converging_solutions
Fn06 Write Register (Modbus / TCP) |
![]() |
Name |
Fn06_WriteRegister: Fn06 Write Register (Modbus / TCP) |
Basic Function |
Request for Write One Register |
||
Symbol |
|
||
Originates from |
Tsunagi Lab Europe |
||
Created by |
OEE-HQ HvB (creation and testing) |
||
File Name |
Fn06_WriteRegister.cxf |
||
Applicable models |
CPU Unit |
CP1L-EL or CP1L-EM |
|
CX-Programmer |
Version 9.40 or higher |
||
Conditions for usage |
The following specifications can be used for FB Auto Allocation:
|
||
Function Description |
Fn06_WriteRegister Function Block writes one Register conform the variable value input. |
||
Kind of FB definition |
Connect Always ON type
|
||
FB Precautions |
Omron can not be held responsible in case of malfunction |
||
EN input condition |
• Connect EN to condition for the FB to Work
|
||
Restrictions
|
• Socket Number 1 to 3 |
||
Output variables |
• This FB requires multiple cycles to process.
|
||
Application example |
Fn06 Write Register Function Block is designed for use with the other Function Blocks. For more more details on the use of this function block see also CP1L-EL/EM Modbus TCP Client Socket Services.
|
||
Related manuals |
CP1L-EM/EL CPU Unit Manual (W516-E1) |
||
-
Variable Table
Input Variables
Name |
Variable name |
Data type |
Default |
Range |
Description |
|---|---|---|---|---|---|
EN |
EN |
BOOL |
|
|
1 (ON): Starts FB
|
Write Register |
Fn06 |
BOOL |
|
|
Start request for Write Register |
Socket Number |
SocketNo |
UNIT |
|
&1 to &3 |
&1 to &3 |
Address |
Address |
WORD |
|
|
Register Address to write |
Value |
Value |
WORD |
|
|
Value |
Output Variables
Name |
Variable name |
Data type |
Range |
Description |
|---|---|---|---|---|
ENO (may be omitted) |
ENO |
BOOL |
|
1 (ON): FB operating normally
|
Done |
Done |
BOOL |
|
Done |
Error |
Error |
BOOL |
|
Error |
Error ID |
ErrorID |
UNIT |
|
Error code:
|
Revision History
Version |
Date |
Contents |
|---|---|---|
1.00 |
21-Apr-2012 |
Original production |
Note
This manual is a reference that explains the function block functions. It does not explain the operational limitations of Units, components, or combinations of Units and components. Always read and understand the Operation Manuals for the system’s Units and other components before using them.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article





