0% found this document useful (0 votes)
28 views4 pages

WT3x201 CheckWTSaddition

Sadd

Uploaded by

Khloud Mahmoud
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views4 pages

WT3x201 CheckWTSaddition

Sadd

Uploaded by

Khloud Mahmoud
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

_WT3x201_CheckWTSaddition (1/4)

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

File name Lib\FBL\omronlib\WirelessTerminal\WT30\_WT3x201_CheckWTSaddition10.cxf


Applicable Master WT30-M01-FLK
models Slave WT30-SID16/SMD16/SMD16-1
CPU Unit Unit version 3.0 or later
CX-Programmer Version 5.0 or higher
Conditions WT30 FA Wireless SS Terminal
for usage • This function block can be used only in RUN mode. This function block cannot be used in TEST or SET
mode.
Communications Settings
The communications settings of the serial port must be the same as those of the WT30 FA Wireless SS
Terminal.
• The communications settings of the specified serial port can be set to the default WT30 settings using
the Set Communications Port (_WT3x600_SetComm) function block, and the other WT30 settings
using the Set Serial Gateway Mode (_SCx604_SetPortGATEWAY) function block.
• Use Serial Communications Unit (SCU) or Serial Communications Board (SCB) unit version 1.2 or
later.
CPU Unit Settings
PLC Setup: Shared Settings for Communications Instructions in FBs
• Communications Instruction Response Timeout Time (default: 2 s)
• Number of Retries (default: 3)
Shared Resources
• Communications ports (internal logical ports)
Function When the start trigger turns ON, the participation status of the slaves connected to the specified master is
description checked.
If all slaves are participating, all zero will be stored in Non-participating Slaves.
If there are slaves that are not participating, the Warning Flag will turn ON and the information on the relevant
slaves will be stored in Non-participating Slaves
FB • The FB is processed over multiple cycles. The FB_BUSY output variable can be used to check whether
precautions the FB is being processed.
• FB_OK or FB_NG will be turned ON for one cycle only after processing is completed. Use these flags to
detect the end of FB processing.
 Timing Chart
Start trigger ON
OFF

Busy Flag (FB_BUSY) ON


OFF

Normal End (FB_OK) or ON


Error End (FB_NG) OFF

• All Slaves Participating


Warning Flag (Warning) ON
OFF

Non-participating Slaves
(WTS_Error_Inf)
↑ #0000 0000 0000 0000 is stored.

• Some Slaves Not Participating


Warning Flag (Warning) ON
OFF

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.

Serial port Unit selection: SCB (#BBBB)


No.: 1
SCB CPU SCU

WT30 Master
Unit 0

Slave Slave Slave

No. 1 No. 3 No. 64

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.

CompoWay/F Error Codes


Code Contents Meaning
#0000 Normal end
#2203 Operation error • The operating mode is incorrect (execution is not possible in the current mode).
• An error occurred in EEPROM.

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.

You might also like