0% found this document useful (0 votes)
17 views

ZSL201 ReadArea1IncidentLevel

Uploaded by

siprian12332
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

ZSL201 ReadArea1IncidentLevel

Uploaded by

siprian12332
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

_ZSL201_ReadArea1IncidentLevel (1/3)

ZSL
201 Read Area 1 Incident Level: _ZSL201_ReadArea1IncidentLevel
Basic Reads the incident level in the Area 1 for the Smart Sensor.
function
Symbol
Start Trigger _ZSL201_ReadArea1IncidentLevel
↑ (BOOL) (BOOL)
EN ENO
(INT) (BOOL)
Busy Flag Unit Selection Busy Flag
UnitSelect BUSY
(INT) (BOOL)
Serial Port No. Normal End
PortNo OK
(INT) (BOOL)
Sensor CH No. SensorChNo NG Error End
(DINT)
IncidentLevel Incident Level

File name Lib\FBL\omronlib\SmartSensor\ZSL\_ZSL201_ReadArea1IncidentLevel10.cxf


Applicable Smart Sensor ZS-LDC
models
CPU Unit CS1*-CPU**H Unit version 3.0 or higher
CJ1*-CPU**H Unit version 3.0 or higher
CJ1M-CPU** Unit version 3.0 or higher
CP1H
CP1L (except 10 points CPU)
Serial CS1W-SCU21-V1, CJ1W-SCU21-V1, CJ1W-SCU41-V1 Unit Version 1.2 or higher
Communications CS1W-SCB21-V1 and CS1W-SCB41-V1 Unit Version 1.2 or higher
Units/Boards
CX-Programmer Version 5.0 or higher
Conditions External Connections
for usages • Can be used for 1:N connections in controller constitution of the sensor side.
• Communications must be within one network and cannot cross to another network.
Communication Settings
The communication settings of the serial port (Serial Gateway) must be the same as those of the Smart
Sensor.
• The communication settings of the specified serial port can be set to the default Smart Sensor settings
(the factory shipment value)using the Set Communications Port (_ZSL600_SetComm) function block,
and the other Smart Sensor settings using the Set Serial Gateway Mode (_SCx604_SetPortGATEWAY)
function block.
CPU Unit Settings
PC System Setup: Shared Settings for Communications Instructions in FBs
• Communications Instruction Response Timeout Time (default: 2 s) 5 s recommended
• Number of retries (default: 0)
Shared Resources
• Communications ports (internal logical ports)
Function When the Start Trigger turns ON, the incident level in the Area 1 is read for the Smart Sensor connected to
description the Serial Port specified by the Connection unit, Serial port No. and Sensor CH No.
FB • This FB is for the Smart Sensor ZS-LDC. Do not use it for other than ZS-LDC. If used, the internal
precautions parameters may be rewritten. Initialize the sensor in the case the internal parameters of the sensor are
rewritten.
• The FB is processed over multiple cycles. The BUSY output variable can be used to check whether the
FB is being processed
• Because there is a case to generate a time-out error when You start multiple FBs at the same time, this
should be avoided.
• OK or NG will be turned ON only for one cycle after processing is completed. Use these flags to detect
the end of FB processing.
Time Chart
Start Trigger ON
OFF

Busy Flag ON
OFF

Normal End (OK) or ON


Error End (NG) OFF

Incident Level

• When this FB is started, the output parameters are cleared.


See the output parameters when the OK flag turns ON.
EN input Connect EN to an OR between an upwardly differentiated condition for the Start Trigger and the BUSY
condition output from the FB as above.
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
_ZSL201_ReadArea1IncidentLevel (2/3)

Output • This FB requires multiple cycles to process. Always connect an OR including the BUSY output variable to
variables the EN input variable to ensure that the FB is processed to a completion (see Symbol).
• Do not turn the BUSY output variable ON or OFF outside the FB.
Others • When measuring the Area 2, execute the Area 2 Incident Level Read function block
(_ZSL202_ReadArea2IncidentLevel).
• Up to 3 seconds may be required for this FB to be completed (i.e., from EN turning ON until the OK or
NG Flag turns ON).
Application A Smart Sensor is connected 1:N to the Serial Port 1 on the Serial Communications Board (SCB).
example When bit A turns ON, the incident level in the Area 1 of the Smart Sensor is stored in D0.
Connection Unit: SCB (#BBBB)
Serial Port
No.: 1
SCB CPU SCU

1:N Connection
Smart Sensor
CH2

Bit A _ZSL201_ReadArea1IncidentLevel
↑ (BOOL) (BOOL)
EN ENO
Unit Selection Busy Flag
(INT) (BOOL)
Bit B #BBBB Bit B
UnitSelect BUSY
Serial Port No. Normal End
(INT) (BOOL)
&1 PortNo OK Bit C
Sensor CH No. (INT) (BOOL) Error End
&2 SensorChNo NG Bit D
(DINT) Incident Level
IncidentLevel D0

Related ZS-L Series Smart Sensor Laser Type User’s Manual (Z208)
manuals ZS Series Smart Sensor Communication Command Reference(Z231)
Related FBs Read Incident Level of the Area 2 (_ZSL202_ReadArea2IncidentLevel)
_ZSL201_ReadArea1IncidentLevel (3/3)

■Variable Tables
Input Variables
Name Variable name Data type Default Range Description
EN EN BOOL 1 (ON): FB started.
0 (OFF): FB not started.
Unit selection UnitSelect INT &0 As right Specify the Unit and the serial port.
Serial Port No. PortNo INT &1 &1 to &2 Only serial port 2 of CP1H/CP1L M-type
CPU unit is possible to use this FB.
„ Connected to CPU Unit
Unit selec tion #FFFF
Serial port No. Not access ed.
(CP1H/CP1L-M: Serial Port2
CP1L-L14/20: Serial Port1)
„ Connected to Serial Communication B oar d(SCB)
Unit selec tion #BBBB
Serial port No. &1: Serial Port 1
&2: Serial Port 2
„ Connected to S eri al Commu nication Unit( SCU )
Unit selection SCU Unit No. (&0 to &15)
Serial port No. &1: Serial Port 1
&2: Serial Port 2

Sensor CH No. SensorChNo INT &0 &1 to &10 Specify the CH No. of the connecting
sensor.

Output Variables
Name Variable name Data type Range Description
ENO ENO BOOL 1 (ON): FB processed normally.
(May be omitted.) 0 (OFF): FB not processed or ended in an error.
Busy Flag BUSY BOOL Automatically turns OFF when processing is
completed.
Normal end OK BOOL Turns ON for one cycle when processing ends
normally.
Error end NG BOOL Turns ON for one cycle when processing ends in an
error.
Incident level IncidentLevel DINT Outputs the incident level of the Area 1.

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
Error code ErrorCode WORD The results information from the Smart Sensor is
output to the Error Code.
See below.

■Error Code Details


Code Contents Meaning
#0000 Normal end
#2203 Read error Read error.
#2204 Mode error The sensor’s operation mode is not in the RUN mode.

Version History
Version Date Contents
1.00 2005.12. 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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy