Language objects associated with the AS-i V2 function. Schneider Electric Software PLC Application-Specific Functions, Junior/Pro, 4.5
Hirdetés
Hirdetés
20.2
Bits and words associated with the AS-i V2 function
Language objects associated with the AS-i V2 function
At a Glance
Aim of this
Section
What's in this
Section?
This section introduces the different language objects associated with the AS-i V2 function.
This section contains the following topics:
Topic
Implicit exchange objects associated with the AS-i V2 function
Exchange management: Module %MWxy.MOD.0:Xj or channel MWxy.0.0 :Xj exchanges in progress
Exchange management: Module %MWxy.MOD.1:Xj or channel %MWxy.i.1:Xj report
Explicit exchange objects: General
Explicit Exchange Objects: %MWxy.MOD.2 and %MWxy.0.2:Xj to
%MWxy.0.73:Xj channel status
Constant %KWxy.i.r configuration objects
Explicit Exchange Object: %MWxy.0.74:Xj channel command
Explicit Exchange Object: %MWxy.0.75 to %MWxy.0.138 Parameter
Adjustment
Explicit Exchange Object: Status %MWxy.MOD.2:Xj
Page
35012326 00 July 2006
331
Bits and words associated with the AS-i V2 function
Implicit exchange objects associated with the AS-i V2 function
At a Glance In each task cycle in which the AS-i V2 function has been configured, these objects are exchanged automatically.
Bit objects
Address
%Ixy.MOD.ERR
%Ixy.0.ERR
%Ixy.0.0
The table below shows the different implicit exchange bit objects.
Function
Module fault bit
Channel fault bit 0
Validity of input
%Ixy.0.1
%I\xy.0\n.i
X Bus communication bit
Digital input channel bit*
%Q\xy.0\.n.i
Digital output channel bit*
*For bank A, n = 0 to 31
*For bank B, n = 100 to 131
Meaning when bit is on 1
Indicates that the AS-i module has a fault.
Indicates a channel 0 fault on the AS-i module
Indicates that all inputs are valid.
Note: When this bit is on 0, it indicates that at least one input is not valid: Offline mode, data exchange off mode, or channel fault.
Indicates a communication error on the X Bus if this bit = 0.
Indicates that the input channel i of device n is activated.
Indicates that output channel i of device n is activated.
332 35012326 00 July 2006
Bits and words associated with the AS-i V2 function
Word objects The table below shows the different implicit exchange word objects.
Address
%IWxy.0.0
%IWxy.0.1
%IWxy.0.2
%IWxy.0.3
%IWxy.0.4
%IWxy.0.5
%IWxy.0.6
%IWxy.0.7
Function
List of standard (A) inactive slaves (/LAS)
List of inactive extended (B) slaves (/LAS)
Peripheral fault (LPF) on standard slaves (A)
Peripheral fault (LPF) on extended slaves (B)
%IWxy.0.8
%IWxy.0.9
%IWxy.0.10
%IWxy.0.11
List of standard (A) active slaves
(LAS)
List of active extended (B) slaves (LAS)
%IW\xy.0\n Analog Input Channel*
%QW\xy.0\n Analog Output Channel*
*For bank A, n = 0 to 31
*For bank B, n = 100 to 131
Meaning for Xj = 1 (j = position of bit in the word) j = 0 to 15 -> respectively standard address slave 0 to 15 inactive.
j = 0 to 15 -> respectively standard address slave 16 to 31 inactive.
j = 0 to 15 -> respectively extended address slave 0 to 15 inactive.
j = 0 to 15 -> respectively extended address slave 16 to 31 inactive.
j = 0 to 15 -> respectively standard address slave 0 to 15 has peripheral fault.
j = 0 to 15 -> respectively standard address slave 16 to 31 has peripheral fault.
j = 0 to 15 -> respectively extended address slave 0 to 15 has peripheral fault.
j = 0 to 15 -> respectively extended address slave 16 to 31 has peripheral fault.
j = 0 to 15 -> respectively standard address slave 0 to 15 active.
j = 0 to 15 -> respectively standard address slave 16 to 31 active.
j = 0 to 15 -> respectively extended address slave 0 to 15 active.
j = 0 to 15 -> respectively extended address slave 16 to 31 active.
Value of input word in analog channel.
Value of output word in analog channel.
35012326 00 July 2006
333
Bits and words associated with the AS-i V2 function
Exchange management: Module %MWxy.MOD.0:Xj or channel MWxy.0.0 :Xj exchanges in progress
At a Glance
Description
These word type objects carry information about the module or channel exchanges in progress.
They are updated automatically by the system.
The table below provides the meaning of the word %MWxy.MOD.0
.
Address
%MWxy.MOD.0:X0
%MWxy.MOD.0:X1
Meaning
Exchange of status words in progress on the module channel.
Exchange of command words in progress on the module channel.
Description The following table provides the meaning of the different bits of the word
%MWxy.i.0
.
Address
%MWxy.0.0
Meaning
Byte 0
X0: Periodic status reading in progress
X1: Specific command in progress
X2: Setting in progress
X15: configuration in progress
334 35012326 00 July 2006
Bits and words associated with the AS-i V2 function
Exchange management: Module %MWxy.MOD.1:Xj or channel %MWxy.i.1:Xj report
At a Glance
Description
These word type objects carry information about module or channel exchange reports.
They are updated automatically by the system.
The following table provides the meaning of the different bits of the word
%MWxy.MOD.1
.
Address
%MWxy.MOD.1:X0
%MWxy.MOD.1:X1
Meaning
Status parameter exchange error on channel 0 of the module
Command parameter exchange error on channel 0 of the module
Description
Example
The following table provides the meaning of the different bits of the word
%MWxy.i.1
.
Address
%MWxy.0.1
Meaning
Byte 0
X0: error in last periodic status reading
X1: error in last command action
X2: error in last setting action
Byte 1
X7: error in last configuration action
The following example shows a possible use of this type of word
(* Detection of a status error on the module situated in *)
(* slot 4 of rack 0 *)
IF NOT %MW4.MOD0:X0 THEN READ_STS %CH4.MOD;
END_IF;
IF %MW4.MOD.1:X0 THEN SET %M100;
END_IF;
35012326 00 July 2006
335
Bits and words associated with the AS-i V2 function
Explicit exchange objects: General
At a Glance Explicit exchange objects carry information (e.g.: bus operation, status of slaves) and the additional commands for advanced programming of the AS-i function.
z z z z z z
The explicit exchange objects are exchanged at the request of the program user using instructions:
READ_STS (reading of status words),
WRITE_CMD (writing the command words),
WRITE_PARAM (writing the adjustment words),
READ_PARAM (reading the adjustment parameters),
SAVE_PARAM (saving the adjustment parameters),
RESTORE_PARAM (restoring the adjustment parameters),
336 35012326 00 July 2006
Bits and words associated with the AS-i V2 function
Explicit Exchange Objects: %MWxy.MOD.2 and %MWxy.0.2:Xj to
%MWxy.0.73:Xj channel status
At a Glance These word type objects provide information on all the slaves present on the AS-i
V2 bus.
Description of word %MWxy.0.2
The table below gives the meaning of the different bits of the word
Address Function
%MWxy.0.2:X0 Standard status
%MWxy.0.2:X1
%MWxy.0.2:X2
%MWxy.0.2:X3
%MWxy.0.2:X4
%MWxy.0.2:X5
%MWxy.0.2:X6
%MWxy.0.2:X7
%MWxy.0.2
Meaning for Xj = 1
No meaning
Slave error.
Line error (APF).
Physical configuration different from PL7 configuration.
Internal software fault.
No meaning
Fault communicating with processor
Command or parameter configuration fault.
.
35012326 00 July 2006
337
Bits and words associated with the AS-i V2 function
Description of word %MWxy.0.3
Address
The table below gives the meaning of the different bits of the word
Function
AS-i master status
Meaning for Xj = 1
%MWxy.0.3
.
Byte 0
%MWxy.0.3:X0
%MWxy.0.3:X1
%MWxy.0.3:X2
%MWxy.0.3:X3
%MWxy.0.3:X4
%MWxy.0.3:X5
%MWxy.0.3:X6
%MWxy.0.3:X7
Byte 1
%MWxy.0.3:X0
%MWxy.0.3:X1
Correct configuration.
Slave 0 present on the bus.
Automatic addressing.
Automatic addressing authorized.
Operation in AS-i configuration mode.
Operation in normal mode.
Faulty AS-i power supply.
Offline mode active.
Data exchange inactive.
Peripheral fault on a bus device.
Description of words
%MWxy.0.4 to
%MWxy.0.7
Address
%MWxy.0.4:Xj
%MWxy.0.5:Xj
%MWxy.0.6:Xj
%MWxy.0.7:Xj
The table below gives the meaning of the different bits of words
%MWxy.0.7
.
Function
List of detected slaves in bank A (LDS)
List of detected slaves in bank B (LDS)
%MWxy.0.4
and
Meaning for Xj = 1 j = 0 to 15 -> slaves 0 to 15 respectively have been detected.
j = 0 to 15 -> slaves 16 to 31 respectively have been detected.
j = 0 to 15 -> slaves 0 to 15 respectively have been detected.
j = 0 to 15 -> slaves 16 to 31 respectively have been detected.
338 35012326 00 July 2006
Bits and words associated with the AS-i V2 function
Description of words
%MWxy.0.8 to
%MWxy.0.71
Address
%MWxy.0.8 to
%MWxy.0.39
%MWxy.0.40 to
%MWxy.0.71
The table below gives the meaning of the different bits of words
%MWxy.0.71
.
%MWxy.0.8
Function
I/O configuration and ID of all detected slaves in bank A
I/O configuration and ID of all detected slaves in bank B
Meaning
Words 8 to 39 -> devices 0 to 31 respectively.
Byte 0 bit 0-3 = configuration code for I/O channels, bit 4-7 = identification (ID) code.
Byte 1 bit 0-3 = identification code (ID1), bit 4-7 = identification code (ID2).
Words 40 to 71 -> devices 0 to 31 respectively.
Byte 0 bit 0-3 = configuration code for I/O channels, bit 4-7 = identification code (ID).
Byte 1: bit 0-3 = identification code (ID1), bit 4-7 = identification code (ID2).
to
Description of word
%MWxy.0.72
Address
%MWxy.0.72
The table below gives the meaning of the word
Function
Parameter data of last parametered slave.
%MWxy.0.72
.
Meaning
Contains the information (value of parameters sent) of the last parametered slave. This is so that the PL7 can check the slave has correctly received these values.
35012326 00 July 2006
339
Bits and words associated with the AS-i V2 function
Description of word
%MWxy.0.73
Address
%MWxy.0.73
The table below provides the meaning of the word %MWxy.0.73
.
Function
Address of last parametered slave.
Meaning
Contains the address of last parametered slave.
Byte 0:
Address of the slave (1 to 31).
Byte 1:
Slave bank:
0 = bank A
1 = bank B.
340 35012326 00 July 2006
Bits and words associated with the AS-i V2 function
Constant %KWxy.i.r configuration objects
At a Glance %KWxy.i.r configuration constants are accessible in read-only mode and correspond to the configuration parameters entered using the Configuration editor.
Description The table below shows constant objects on the AS-i exteneded bus.
Address
%KWxy.0.0
%KWxy.0.1:Xj
%KWxy.0.2:Xj
%KWxy.0.3:Xj
%KWxy.0.4:Xj
%KWxy.0.5 à
%KWxy.0.36
%KWxy.0.37 à
%KWxy.0.68
%KWxy.0.69:X0
Function
AS-i master
List of expected slaves in bank A (LDS)
List of expected slaves in bank B (LPS)
I/O configuration and ID of all expected slaves in bank A
I/O configuration and ID of all expected slaves in bank B
Automatic Address
Monitoring
Meaning
When byte 0 = 10, this shows that AS-i is master.
j = 0 to 15 -> expected slaves 0 to 15 respectively.
j = 0 to 15 -> expected slaves 16 to 31 respectively.
j = 0 to 15 -> expected slaves 0 to 15 respectively.
j = 0 to 15 -> expected slaves 16 to 31 respectively.
Words 5 to 36 -> devices 0 to 31 respectively.
Byte 0: bits 0-3 = configuration code for I/O channels, bits 4-7 = identification code (ID).
Byte 1: bits 0-3 = identification code (ID1), bits 4-7 = identification code (ID2).
Words 37 to 68 -> devices 0 to 31 respectively.
Byte 0: bits 0-3 = configuration code for I/O channels, bits 4-7 = identification code (ID).
Byte 1: bits 0-3 = identification code (ID1), bits 4-7 = identification code (ID2).
If this = 1, automatic addressing is active.
If this = 0, automatic addressing is deactivated.
35012326 00 July 2006
341
Bits and words associated with the AS-i V2 function
Explicit Exchange Object: %MWxy.0.74:Xj channel command
At a Glance This word type object is used to manage the switch to Offline mode (See AS-i V2
Offline Operating Mode, p. 349
) or Data Exchange Off mode (See AS-i V2 Data
Exchange Off Operating Mode, p. 350 ) of the AS-i V2 master.
Note: Use of this object requires a thorough knowledge of AS-i V2 communication principles.
Description The table below gives the different states of the word %MWxy.0.74
, giving access to the different modes.
Address
%MWxy.0.74:X0
%MWxy.0.74:X1
%MWxy.0.74:X2
%MWxy.0.74:X3
Meaning for Xj=1
Switching to Offline mode
Leaving Offline mode
Data exchange inactive
Data exchange active
Note: Offline mode has priority over Data Exchange Off mode.
342 35012326 00 July 2006
Bits and words associated with the AS-i V2 function
Explicit Exchange Object: %MWxy.0.75 to %MWxy.0.138 Parameter Adjustment
At a Glance
Description
Address
%MWxy.0.75 to
%MWxy.0.106
%MWxy.0.107 to
%MWxy.0.138
These objects are used to manage the parameters of AS-i V2 slave devices.
They can be modified without stopping the AS-i V2 function.
The table below shows AS-i V2 parameter adjustment objects.
Function
Adjustment of parameters of slaves in bank A.
Adjustment of parameters of slaves in bank B.
Meaning
Contain the parameter values of slaves 0 to 31 respectively.
Contain the parameter values of slaves 0 to 31 respectively.
35012326 00 July 2006
343
Bits and words associated with the AS-i V2 function
Explicit Exchange Object: Status %MWxy.MOD.2:Xj
At a Glance
Description
This word type object provides information on the state of the module TSX SAY
1000 .
The table below gives the meaning of the different bits of the word
%MWxy.MOD.2:Xj .
Address Function
%MWxy.MOD.2:X0 Standard module status
%MWxy.MOD.2:X1
%MWxy.MOD.2:X2
Meaning for Xj = 1
Internal error.
Configuration fault.
Line fault.
344 35012326 00 July 2006
AS-i V2 operating mode
21
At a Glance
Aim of this chapter
What's in this
Chapter?
This chapter introduces the different AS-i V2 function operating modes.
This chapter contains the following topics:
Topic
AS-i V2 Operating Mode: General
AS-i V2 Protected Mode
AS-i V2 Offline Operating Mode
AS-i V2 Data Exchange Off Operating Mode
Page
35012326 00 July 2006
345
AS-i V2 operation
AS-i V2 Operating Mode: General
At a Glance
Operating mode
The extended AS-i V2 function allows three operating modes, each one fulfilling particular needs. These modes are: z z z protected mode, offline mode, data exchange off mode.
The figure below shows the general operating diagram of the AS-i V2 bus.
Offline mode
Start
AS-i master module
Waiting to receive configuration
No
Is the master configured?
Yes
Protected mode
(1)
Standard management of
AS-i V2 slaves
(1) : It is possible to switch from protected mode to offline or data exchange off modes (see
AS-i V2 Offline Operating Mode, p. 349
or AS-i V2 Data Exchange Off
346 35012326 00 July 2006
AS-i V2 operation
Correspondence between PLC operating modes and the AS-i bus
The table below shows the correspondence between Premium PLC operating modes and those of the AS-i V2 bus.
PLC
Configured mode (1)
AS-i bus
Protected mode
Non-configured mode (1) Configuration mode
Legend:
(1) These PLC notions (configured, non-configured) concern the declaration of the module and slave devices in the PL7 application hardware configuration screen.
35012326 00 July 2006
347
AS-i V2 operation
AS-i V2 Protected Mode
At a Glance The AS-i V2 protected operating mode is the mode generally used for an application which is running.
It assumes that the AS-i V2 module is configured in PL7.
This: z continually checks that the list of detected slaves is the same as the list of expected slaves, z monitors the power supply.
In this mode, a slave will only be activated if it has been declared in the configuration and been detected.
Principle of activating a slave
The diagram below shows the principle of activating AS-i V2 slaves.
PL7 AS-i V2 Bus Module
List of slaves expected LPS
List of detected slaves LDS
Comparison
List of activated
slaves LAS
348 35012326 00 July 2006
AS-i V2 operation
AS-i V2 Offline Operating Mode
At a Glance The Offline AS-i V2 mode is an advanced operating mode which can be used in debugging or maintenance.
Note: The user must be thoroughly familiar with AS-i V2 communication.
Principle
Procedure
When Offline mode is engaged, the module first resets all the present slaves to zero and stops exchanges on the bus.
During Offline mode, the outputs are forced to zero.
Note: The Offline mode is also used to exploit the infrared addressing function on the slaves which support this function.
The Offline operating mode is accessible from the PL7 application software by acting on bits 0 and 1 of the word %MWxy.0.74.
Reminder: Bit 7 of word %MWxy.0.3 set on 1 indicates that the AS-i bus is in Offline mode.
35012326 00 July 2006
349
AS-i V2 operation
AS-i V2 Data Exchange Off Operating Mode
At a Glance The Data Exchange Off AS-i V2 mode is an advanced operating mode which can be used in debugging or maintenance.
Note: The user must be thoroughly familiar with AS-i V2 communication.
Principle
Procedure
When the Data Exchange Off mode is engaged, exchanges on the bus continue to function, but data is no longer refreshed.
The Data Exchange Off operating mode can be accessed from PL7 application software by acting on bits 2 and 3 of the word %MWxy.0.74.
350 35012326 00 July 2006
AS-i V2 performance
22
AS-i V2 Bus Performance
Introduction
AS-i V2 Scanning
Time
Scanning time t represents the exchange time between the master and n slaves
(31 maximum on /A and/or /B).
Either: z up to 19 active slaves, t = 3ms z from 20 to 31 active slaves t = (1 + number of active slaves) * 0.156 ms
When two slaves A and B are at the same address, each slave of this pair is scanned on every second cycle.
Thus, for 31 extended address slaves in /A + 31 extended address slaves in /B, the scanning time will be 10ms.
AS-i V2
Response Time
The AS-i V2 bus is independently managed by the master. This exchanges data on each cycle with each slave device configured on the bus (in ascending order of slave address number).
Example
The response time T represents the AS-i V2 cycle time.
This includes: z z z the bus scanning time, the update of the AS-i V2 module internal memory, the PLC cycle.
The table below shows three examples of T response time for a PLC task lasting
10 ms, 30 ms, and 60 ms.
This T time is for a bus loaded with 31 slaves operating normally with no link faults.
PLC task
10 ms
30 ms
60 ms
Typical response time
35 ms
65 ms
110 ms
Maximum response time
56 ms
96 ms
156 ms
35012326 00 July 2006
351
AS-i V2 performance
352 35012326 00 July 2006
DFB for AS-i Security Monitor
23
At a Glance
Aim of this
Section
What's in this
Chapter?
This DFB describes the DFB for the AS-i Security Monitor.
This chapter contains the following topics:
Topic
Description of the security function block of the AS-i bus
Operation of the AS-i security function block
Programming rules for security DFB
How to implement a DFB function block
Page
35012326 00 July 2006
353
DFB AS-i
Description of the security function block of the AS-i bus
General
Graphic representation
This DFB is used to obtain data processed by the safety monitor.
This drawing provides a graphic representation of the AS-i security function block:
SAFETY_MONITOR
Inputs
I0:Bit
I1:Bit
I2:Bit
I3:Bit
Enable
Q0
Q1
Q2
Q3
Error:Bit
Running:Bit
Outputs
Internal public data
Abort
Timeout
Dfb_stat
Dfb_err
Moni_err
Out_1
Out_2
SI_Ready
SI_off
SI_error
Bit
Word
Word
Word
Bit
Bit
Bit
Dword
Dword
Dword
Input parameters The table below describes the input parameters of the security DFB:
I1
I2
Name
I0
I3
Type
Bit
Bit
Bit
Bit
Description of monitor data
Input variable 0: %I\x.y.0\i.0 (x=rack, y=module, i=AS-i monitor address)
Input variable 1: %I\x.y.0\i.1 (x=rack, y=module, i=AS-i monitor address)
Input variable 2: %I\x.y.0\i.2 (x=rack, y=module, i=AS-i monitor address)
Input variable 3: %I\x.y.0\i.3 (x=rack, y=module, i=AS-i monitor address)
354 35012326 00 July 2006
DFB AS-i
Output parameters
Name
Error
Type
Bit
Running Bit
The table below describes the output parameters of the security DFB:
Description
This bit is set to "1" if an error occurs: DFB error or security bus error (error on at least one slave): z if it is a DFB error (enable = 0): consult dfb_error ( ≠ 0) for further information. In the event of a DFB error, the information from the security application is no longer valid.
z if it is a security application error (dfb_error = 0 and enable = 1): consult sl_error to obtain the list of slaves on which an error has occurred.
This Bit is set to "1" during DFB execution.
Q0
Q1
Q2
Q3
Input/output parameters
Name
Enable
Type
Bit
Bit
Bit
Bit
Bit
The table below describes the input/output parameters of the security DFB:
Description
DFB activation (Cold Start): if this Bit is set to "1", the DFB is executed; otherwise it is deactivated. The information can only be used if Enable = 0.
Output variable 0: %Q\x.y.0\i.0 (x=rack, y=module, i=AS-i monitor address)
Output variable 1: %Q\x.y.0\i.1 (x=rack, y=module, i=AS-i monitor address)
Output variable 2: %Q\x.y.0\i.2 (x=rack, y=module, i=AS-i monitor address)
Output variable 3: %Q\x.y.0\i.3 (x=rack, y=module, i=AS-i monitor address)
35012326 00 July 2006
355
DFB AS-i
Public data parameters
Name
Abort
Moni_err
Out_1
Out_2
SI_ready
SI_off
SI_error
Dfb_stat
Dfb_err
Timeout
Bit
Bit
Bit
Dword
Dword
Dword
Word
Word
The table below describes the public data parameters of the security DFB:
Type
Bit
Word
Description
If this bit is set to "0" in one cycle then set to "1" in the next cycle, all exchanges between the CPU and Safety monitor are stopped and the
DFB is reinitialized.
All the internal data of the DFB is set to 0.
Data exchange timeout (time base of 100ms).
If the DFB does not receive a correct response before this period has elapsed, the transaction is cancelled, the DFB is deactivated and the error bit is set to "1" (Dfb_stat and Dfb_err are updated).
this bit is set to "1" if an error has occurred on the monitor.
this bit is set to "1" if the contact on OUT1 is closed.
this bit is set to "1" if the contact on OUT2 is closed.
each bit corresponds to the index of the security device which is in test or read status.
each bit corresponds to the index of the security device which is deactivated.
each bit corresponds to the index of the security device on which an error has occurred.
this is the DFB status; this variable enables the user to check on DFB
(See
Operation of the AS-i security function block, p. 357 ) progress.
This word specifies the error type: z 16#90; the response sent by the monitor is not valid, z 16#91: the DFB has been deleted by the user, z 16#92: the exchange has stopped as a result of a TimeOut. The
DFB cannot receive data.
To search for a safety slave which has been activated
The search for the address of a safety slave which has been activated can be facilitated by acknowledgment of the slave's inputs I3/I2/I1/I0. These inputs are equal to 0/0/0/0 if the slave has been activated, and not equal to 0/0/0/0 if the slave has not been activated. This information shall not be taken into account for safety purposes: only the safety monitor supplies the safety outputs.
356 35012326 00 July 2006
DFB AS-i
Operation of the AS-i security function block
General operation
Step-by-step description of operation
All the information used in the AS-i security DFB is obtained from the language objects associated with the TSX SAY 100 AS-i module and the TSX SAY 1000
AS-i V2 module.
The table below provides a step-by-step description of how the security DFB operates:
Step
1
2
3
4
5
Action
The bus master sends the request to test the monitor.
The bus master sends the request for the monitor to copy its status to static memory.
The bus master analyses the data from the monitor.
Retrieval of data from all security devices.
35012326 00 July 2006
357
DFB AS-i
Programming rules for security DFB
General
Rules
The security DFB, which is implemented in exactly the same way as the AS-i DIAG
DFB, can be programmed in any type of program (Main, SR or section) in Ladder
(LD), Structured Text (ST) or Instruction List (IL) language.
It is: z z z systematically available in PL7 (See
How to insert a security DFB, p. 360 ),
read and write protected, dedicated to a single security monitor.
z z z
Preferably, the security DFB should be executed in the MAST task (for performance reasons).
You are strongly advised to only program a single instance of the security DFB in the application.
For a security DFB to be executed, the following conditions must be met: z the DFB must be called (the part of the program to which it has been assigned z must be executed) the Enable input must be set to 1
358 35012326 00 July 2006
DFB AS-i
Programming in
Ladder language
The security DFB function block is inserted in a ladder network. Programming consists of linking together these inputs/outputs
Sécurité
DFB SAFETY_MONITOR
%I\1.0\31.0
EBOOL
I0
%M102
S
%I\1.0\31.1
EBOOL
Error
%I\1.0\31.2
EBOOL
I1 EBOOL
Running
EBOOL
I2
%I\1.0\31.3
EBOOL
I3
%M101
%Q\1.0\31.0
%Q\1.0\31.1
%Q\1.0\31.2
%Q\1.0\31.3
EBOOL
Enable
EBOOL
Q0
EBOOL
Q1
EBOOL
Q2
EBOOL
Q3
Programming in
Structured Text language
The programming syntax is as follows:
%Li: label
Inst ( I0,..., I3, %MW101, Q0,...,Q3, %M102) ; where: z z z z z z
%Li : label,
Inst : name of a DFB instance,
I0,..., I3 : DFB inputs,
%M101: Enable input of DFB,
Q0,...,Q3 : variables linked to the DFB outputs,
%M102: Error output variable.
Enable %M101
Q0 %Q\1.0\31.0
Q1 %Q\1.0\31.1
Q2 %Q\1.0\31.2
Q3 %Q\1.0\31.3
35012326 00 July 2006
359
DFB AS-i
How to implement a DFB function block
Reminder
Using DFBs
How to insert a security DFB
The AS-i security DFB is included in the PL7 base (See How to insert a security
This block instance can then be used as a standard function block in Ladder language, or as an elementary function in Structured Text or Instruction List language.
It can be programmed in all the different tasks (except in event processing tasks) and sections of the application.
The following table describes the procedure used to insert a security DFB:
Step
1
2
Action
Declare the security DFBs
1.
Import the binary DFB file (SAFETY_MONITOR .UFB) by selecting Import binary from the context-sensitive menu and importing the file from the
Dfb_asi sub-directory in the PL7 installation directory (e.g.
C:\PL7\PL7PRO43\Dfb_asi),
2.
Declare an instance of the DFB in the PL7 variable editor.
Program the DFB in the ladder network in LD or in the sequence in ST.
See
Programming rules for security DFB, p. 358
360 35012326 00 July 2006
Operator Dialog functions
V
Introduction
Subject of this part
What's in this
Part?
This part introduces the specific built-in Operator Dialog functions of PL7 and describes the software setup.
This part contains the following chapters:
Chapter
24
25
26
Chapter Name
General presentation of the Operator Dialog functions
Built-in DOP functions
Appendices
Page
35012326 00 July 2006
361
Operator Dialog functions
362 35012326 00 July 2006
General presentation of the
Operator Dialog functions
24
General presentation
Introduction The PL7 software allows the implementation of specific functions, designed to simplify the use of an operator dialog terminal (version 2.0 and higher) on a
Premium PLC.
These functions are the basic elements of the PL7 language.
They allow the following actions to be carried out without referring to the communication media between the command console CCX 17 and the PLC: z z z displaying messages, displaying message and alarm message groups, entering values from the PLC program.
Hence the Operator Dialog functions are completely integrated in the PLC application and support: z z data cohesion, unique saving, z z z easy maintenance, simplified consoles.
...
The processing of these functions occurs asynchronously to the processing of the operative task that enabled their activation.
How to access a
DOP function
See
Application-specific instructions, p. 62 .
363
35012326 00 July 2006
General presentation
Conditions for using built-in
DOP functions
Example of a
DOP function
The built-in DOP functions require a program space of 1 Kword (4.7 Kwords for
ADJUST). Variables must be reserved for the data you want to display (use the constants %KWi).
The illustration below shows an example of a DOP function written in the different
PL7 languages using the assisted entry of the library functions.
PANEL-CMD
Parameters
Console address:
Data to Send:
%MW0
%KW40
Commands
Clear
Screen
Entry log
Alarm log
Alarm management
Cancel an Alarm
6
2
Line
Clear
Clear
Report:
Line number
Alarm number
%MW100 4
1
1
OK Cancel
LD Language
%M100 %MW100>> OPERATE
PANEL_CMD (ADR#0.0.4, %KW0:2, %MW>>
IL Language
LDN
ANDN
%100
%MW100:X0
[PANEL_CMD (ADR#0.0.4, %KW0:2, %MW0: 4 ) ]
ST Language
IF NOT %M100 AND NOT %MW100. X0 THEN PANEL_CND (%MW0 . 6,%KV0 . 2,%MW100 . 4),
END_-F
364 35012326 00 July 2006
Built-in DOP functions
25
Introduction
Subject of this chapter
What's in this
Chapter?
This chapter describes the different built-in DOP functions and shows how they are set-up in PL7.
This chapter contains the following sections:
Section
25.1
25.2
Topic
Description of the parameters common to the different DOP functions
Description of the built-in DOP functions
Page
365
35012326 00 July 2006
Built-in DOP functions
366 35012326 00 July 2006
Letöltés
Hirdetés