57
Appendix B
Function Block Programming
B-1
Introduction
In order to facilitate the data transfer to and from Temperature Controllers from a CS1/CJ1W-PRM21 PROFI-
BUS-DP Master via the PRT1-SCU11, OMRON provides a number of PLC Function Blocks. These function
blocks can be used in the CS1/CJ1 PLC program to assemble the output data or extract the input data from the
CS1/CJ1W-PRM21 PROFIBUS Master I/O data areas. This appendix describes these function blocks.
Note
Function Blocks are only supported by CX-Programmer version 5.0 and higher.
B-2
Basic / Extended Function Blocks
A total of 10 function blocks are provided for the basic and extended I/O configuration blocks for the E5_N,
E5ZN and E5_R Temperature controllers. The table below lists the specifics of these function blocks.
Item
Description
Basic function
Writes the SV/Operation command and reads the PV/MV/Status/Operation Executed word.
Symbol
Note
Only the function block for a 4 channel E5_R is shown. The other function blocks are limited
versions of this one.
Start Word
Profibus output data
Start Word
Profibus input data
SV Channel 1
SV Channel 2
SV Channel 3
SV Channel 4
Operation Command word
PV Channel 1
MV1 Channel 1
MV2 Channel 1
Status High Word Channel 1
Status Low Word Channel 1
PV Channel 2
MV1 Channel 2
MV2 Channel 2
Status High Word Channel 2
Status Low Word Channel 2
PV Channel 3
MV1 Channel 3
MV2 Channel 3
Status High Word Channel 3
Status Low Word Channel 3
PV Channel 4
MV1 Channel 4
MV2 Channel 4
Status High Word Channel 4
Status Low Word Channel 4
Special Operation Executed
Word
Start Trigger
(BOOL)
EN
(BOOL)
ENO
(UINT)
StratWordOutput
(WORD)
PV_CH1
(UINT)
StartWordInput
(WORD)
MV1_CH1
(WORD)
SV_CH1
(WORD)
MV2_CH1
(WORD)
SV_CH2
(WORD)
Status_HW_CH1
(WORD)
SV_CH3
(WORD)
Status_LW_CH1
(WORD)
SV_CH4
(WORD)
PV_CH2
(WORD)
Oper_Cmmnd
(WORD)
MV1_CH2
(WORD)
MV2_CH2
(WORD)
Status_HW_CH2
(WORD)
Status_LW_CH2
(WORD)
PV_CH3
(WORD)
MV1_CH3
(WORD)
MV2_CH3
(WORD)
Status_HW_CH3
(WORD)
Status_LW_CH3
(WORD)
PV_CH4
(WORD)
MV1_CH4
(WORD)
MV2_CH4
(WORD)
Status_HW_CH4
Status_LW_CH4
Operation_Exec