WT3x201 CheckWTSaddition
WT3x201 CheckWTSaddition
WT3x
201 Check Slave Participation: _WT3x201_CheckWTSaddition
Basic Checks the participation of slaves.
function
Symbol Start trigger _WT3x201_CheckWTSaddition
↑ (BOOL) (BOOL)
EN ENO
Unit selection (INT) (BOOL) Busy Flag
Busy Flag UnitSelect FB_BUSY
Serial Port No. (INT) (BOOL) Normal end
PortNo FB_OK
Master unit No. (INT) (BOOL) Error end
WTM_UnitNo FB_NG
(LWORD) (BOOL)
Registered slaves Busy Flag
WTS_Registration Warning
(LWORD)
Non-participating Slaves
WTS_ErrorInf
Non-participating Slaves
(WTS_Error_Inf)
↑ #0000 0000 0000 0000 is stored.
Non-participating Slaves
(WTS_Error_Inf)
↑ Output value is stored.
_WT3x201_CheckWTSaddition (2/4)
EN input Connect EN to an OR between an upwardly differentiated condition for the start trigger and the FB_BUSY
condition output from the FB.
Restrictions • Always use an upwardly differentiated condition for EN.
Input • If the input variables are out of range, the ENO Flag will turn OFF and the FB will not be processed.
variables
Output • The Warning Flag and Non-participating Slaves are set when the Normal End flag turns ON.
variables • This FB requires multiple cycles to process. Always connect an OR including the FB_BUSY output
variable to the EN input variable to ensure that the FB is processed to completion (see Symbol).
• Do not turn the FB_BUSY output variable ON or OFF outside the FB.
Application A WT30 FA Wireless SS Terminal is connected to serial port 1 on a Serial Communications Board (SCB).
example When bit A turns ON, the participation status of the slaves for master 0 is checked.
WT30 Master
Unit 0
Start trigger
Bit A _WT3x201_CheckWTSaddition
(BOOL) (BOOL)
↑
EN ENO
Unit selection (INT) (BOOL)
Busy Flag Busy Flag
Bit B #BBBB UnitSelect FB_BUSY Bit B
Serial Port No. (INT) (BOOL) Normal end
&1 PortNo FB_OK Bit C
Master unit No. (INT) (BOOL)
Error end
&0 WTM_UnitNo FB_NG
Bit D
Registered slaves (LWORD) (BOOL)
Warning Flag
#8000000000000005 WTS_Registration Warning
Bit E
(LWORD)
WTS_ErrorInf Non-participating Slaves
Normal end Warning Flag D0
Bit C Bit E
Alarm output
Bit 15 Bit 0
D0
: Unit 1
Unit 3
D3
Unit 64
Slaves 1, 3, and 64 Participating
When FB execution has been completed, the Normal End Flag (bit C) will turn ON for one cycle and the
following values will be stored for the Non-participating Slaves: D3: #0000, D2: #0000, D1: #0000, and
D0: #0000.
• Slaves 1 and 3 Participating and Slave 64 Not Participating
When FB execution has been complete, the Normal End Flag (bit C) will turn ON for one cycle, the Warning
Flag (bit E) will turn ON for one cycle, and the following values will be stored for the Non-participating
Slaves: D3: #8000, D2: #0000, D1: #0000, and D0: #0000.
_WT3x201_CheckWTSaddition (3/4)
Variable Tables
Input Variables
Name Variable name Data type Default Range Description
EN EN BOOL ON: FB started
OFF: FB not started.
Unit selection UnitSelect INT &0 At right. Specify the connected Unit and serial port.
Serial Port No. PortNo INT &1 &1 to &2 Connected to CPU Unit
Unit Selection #FFFF
(UnitSelect)
Serial Port No. Not accessed
(PortNo) (recommended: &1).
Connected to SCB
Unit Selection #BBBB
(UnitSelect)
Serial Port No. &1: Port 1
(PortNo) &2: Port 2
Connected to SCU
Unit Selection Unit No. (&0 to &15)
(UnitSelect)
Serial Port No. &1: Port 1
(PortNo) &2: Port 2
Master unit No. WTM_UnitNo INT &0 &0 to &99 Specify the unit number of the master.
Registered slaves WTS_Registration LWORD Specify the slaves that should be
participating.
Bit 63 1 0
OFF: Not participating
ON: Participating
Unit 1
Unit 2
Unit 64
Example when slaves 1 and 64 should be
participating:
#8000000000000001
(Bits 0 and 63 are ON.)
Output Variables
Name Variable name Data type Range Description
ENO ENO BOOL ON: FB processed normally.
(May be omitted.) OFF: FB not processed or ended in an error.
Busy Flag FB_BUSY BOOL Automatically turns OFF when processing is
completed.
Normal end FB_OK BOOL Turns ON for one cycle when processing ends
normally.
Error end FB_NG BOOL Turns ON for one cycle when processing ends in an
error.
Busy Flag Warning BOOL ON: There are slaves not participating that should be
participating.
OFF: All slaves that should be participating are
participating.
Non-participating WTS_ErrorInf LWORD Outputs information on slaves that should be
Slaves participating but that are not participating.
Bit 63 1 0 OFF: Non-participating or participating
ON: Not participating when it should
be participating
Unit 1
Unit 2
Unit 64
_WT3x201_CheckWTSaddition (4/4)
Internal Variables
Internal variables are not output from the FB.
If the NG Flag from the FB turns ON, the following internal variables can be monitored to obtain information on the error.
Name Variable name Data type Range Description
FINS error code FINS_ErrorCode WORD The FINS error code is output. A code of #0000 is
output for a normal end. Refer to the Related Manuals
for details on the error codes.
CompoWay/F CompowayF_Error WORD Outputs the CompoWay/F error code. A code of #0000
error code Code is output for a normal end. See below for details on
errors.
Version History
Version Date Contents
1.00 2004.12. Original production
Precautions
This Guide describes function of OMRON Function Block.
This Guide does not include limiting of usage unit/control component, or combination of them. Please read user’s/operation
manual of product for the actual application.