Description of the built-in DOP functions "Data to send" parameter coding. Schneider Electric Software PLC Application-Specific Functions, Junior/Pro, 4.5
Below you will find brief information for PL7 Junior/Pro.This user guide provides detailed information on software implementation of applications (except communication applications) on Premium/Atrium using PL7 software,covers configuration, symbolization, programming, debugging along with I/O control & fault identification for PLC Application.
Advertisement
Advertisement
Appendices
26.2
Description of the built-in DOP functions
"Data to send" parameter coding
Introduction
Subject of this section
What's in this
Section?
This section describes the Data to send parameter.
It is intended for application developers who want to install built-in DOP functions without using the input help screens.
This section contains the following topics:
Topic
PLC status message display: SEND_MSG function
PLC checked status message entry: ASK_MSG and GET_MSG function
PLC alarm message display: SEND_ALARM function
Display of status, alarm or a group of messages contained in the CCX 17 memory: ASK_VALUE, DISPLAY_MSG, GET_VALUE, DISPLAY_ALRM and
DISPLAY_GRP functions
Display of luminous column LEDS: CONTROL_LEDS function
Configuring command keys: ASSIGN_KEYS function
Generic send command: PANEL_CMD function
Page
426 35012326 00 July 2006
Appendices
PLC status message display: SEND_MSG function
Introduction Status messages can be constructed from the PLC application by creating the send using internal words (%Mwi) as intermediaries to display them on a CCX17 console screen. This is the role of the SEND_MSG function.
35012326 00 July 2006
427
Appendices
Data to send parameter coding
Meaning
1
2
Word number
3
4 to P
P +1
P +2
P +3
P +4
P+5
P+6
P+7
P+8
P+9
P
The table below shows the significance of the different words which constitute the following parameter: Data to send (47 words maximum).
contains a marker of value 16#CC17, contains value 0 contains the length in bytes and the zone of the following words, contain the message text to send, this being the characters that are underlined representing the characters expected during the display of a variable. The maximum length of this text is 40 characters.
If the text is composed of an odd number of characters, the last byte is worth 0, if the text is of even length and if it is less than 39 characters, the last byte must contain the value 0, contains the line number where the message must be displayed, contains the column number where the start of the message must be displayed,
This two word zone (four characters) contains the message characteristics and is structured as follows:
Character 1 This character (in capitals) corresponds to a video attribute: z z z z
B = blinking,
R = reverse video,
A = blinking and reverse video,
N = no attribute
Character 2
Characters 3 and
4
This character (in capitals) corresponds to the character font size: z S = normal size, z D = double width or height corresponds to the printing option: z Y followed by a space = yes, z N followed by a space = no.
If you do not want to display a variable, the following word must be at 0 (in this instance, following parameters is ignored), otherwise the following parameters must be added: contains the position of the variable to display, counted in number of characters in relation to the start of the message.
contains the number of characters to display for the variable.
contains a supplementary command: z 0: no command, z 1: clear screen, z 2: clear the line before the display.
contains the value 16#0030.
Number of words containing the text of the message to send (see line 4 to P).
428 35012326 00 July 2006
Appendices
Word number
P+12
P+13
Meaning
P+10 and 11 contain the type of entry field: z BIT +space = bit type, z z
ANA + space = word type,
LNG + space = double word type, z z
DAY + space = date type,
HOU + space = hour type.
contains value 0.
contains the type of variable to display: z z
B +space = bit type,
W + space = word type, z DW = double word type,
Note: for a Date or Hour type, this word contains value 0.
P+14 contains: z z the address index of the variable to display for a bit, word or double word type, value –1 for a date or hour type.
P+15 and 16 contain the display format for the variable and are structured in the following ways:
Byte 1 specifies if the variable is signed (sign +), or not (space),
Bytes 2 and 3 specifies the display format:
ASCII or DIGITAL without decimal places
Byte 2 Byte 2 the ASCII code for the space, that being 20
DIGITAL with less than ten decimal places
DIGITAL with at least ten decimal places the ASCII code for the space, that being 20 the ASCII code for the number of tens of decimal places the ASCII code for the number of decimal places the ASCII code for the number of decimal place units
P+17
P+18
Byte 4 specifies the display type: z N = no format, z z
D = Digital,
A = ASCII define if the variable must be refreshed or not: z Y + space = yes, z N + space = no.
contains the value N + space,
P+19 to 25 contain the value 0 (7 words).
P Number of words containing the text of the message to send (see line 4 to P).
35012326 00 July 2006
429
Appendices
Example of use The example below shows the values corresponding to the word table %MW0:12
(data to send) of the SEND_MSG(ADR#0.0.4,%MW0:12,%MW100:4) function;
Value Comment Word number
%MW0
%MW1
%MW2
%MW3
%MW4
%MW5
%MW6
%MW7
%MW8
%MW9
%MW10
%MW11
15
ND
N sp
0
0
2 ur sp 4
16#CC17
0
18
Fo
Marker
Imposed value
Byte size of the following zone which includes nine words
Message text
Message text (continued)
Message text (end)
End of message mark
Message position (line number)
Message position (column number)
Message characteristics (no attribute or double font)
Message characteristic (no printing)
The message includes no variable
430 35012326 00 July 2006
PLC checked status message entry: ASK_MSG and GET_MSG function
Appendices
Introduction Checked status messages can be constructed from the PLC application by creating the send using internal words (%MWi) as intermediaries to display them on a CCX17 console screen. This is the role of the ASK_MSG and GET_MSG functions.
35012326 00 July 2006
431
Appendices
Data to send parameter coding
Meaning
1
2
Word number
The table below shows the significance of the different words which constitute the following parameter: Data to send (47 words maximum).
3
4 to P
P +1
P +2
P +3
P +4
P+5
P+6
P+7
P+8
P+9
P+10
P contains a marker of value 16#CC17, contains the command type: z 33 = command number for ASK_MSG, z 6 = command number for GET_MSG, contains the length in bytes and the zone of the following words, contain the message text to send, this being the characters that are underlined representing the characters expected during the display of a variable. The maximum length of this text is 40 characters.
If the text is composed of an odd number of characters, the last byte is worth 0, if the text is of even length and if it is less than 39 characters, the last byte must contain the value 0, contains the line number where the message must be displayed, contains the column number where the start of the message must be displayed,
This two word zone (four characters) contains the message characteristics and is structured as follows:
Character 1 This character (in capitals) corresponds to a video attribute: z z z z
B = blinking,
R = reverse video,
A = blinking and reverse video,
N = no attribute
Character 2
Characters 3 and
4
This character (in capitals) corresponds to the character font size: z S = normal size, z D = double width or height corresponds to the printing option: z Y followed by a space = yes, z N followed by a space = no.
contains the position of the variable to display, counted in number of characters in relation to the start of the message.
contains the number of characters to display for the variable.
contains a supplementary command: z 0: no command (ASK_MSG synchronized entry), z 24: free entry authorized after display (GET_MSG multiple entry).
contains the value 16#0030.
contain the type of entry field (in Upper case): z BIT +space = bit type, z z
ANA + space = word type,
LNG + space = double word type.
Number of words containing the text of the message to send (see line 4 to P).
432 35012326 00 July 2006
Appendices
Word number
P+11
P+12
P+13
P+14
P+15
P+16
Meaning contains value 0.
contains the type of variable to display (in Upper case): z B +space = bit type, z z
W + space = word type,
DW = double word type, contains the address index of the variable to display.
contain the display format for the variable and are structured in the following ways:
Byte 1
Bytes 2 and 3 specifies if the variable is signed (sign +), or not (space), specifies the display format:
ASCII or DIGITAL without decimal places
DIGITAL with less than ten decimal places
DIGITAL with at least ten decimal places
Byte 2 the ASCII code for the space, that being 20 the ASCII code for the number of tens of decimal places
Byte 4 specifies the display type: z z z
N = no format,
D = Digital,
A = ASCII defines whether or not the variable must be updated: z Y + space = yes, z N + space = no.
Byte 3 the ASCII code for the space, that being 20 the ASCII code for the number of decimal places the ASCII code for the number of decimal place units
P+17 defines the field attributes: z I + space = increment, z L + space = others.
P+18 and 19 define the limit type: z 0 = unlimited, z 1 = minimum limit only, z z
2 = maximum limit only,
3 = minimum and maximum limit.
P+20 and 21 contain the minimum limit value.
P+22 and 23 contain the maximum limit value.
P+24 and 25 contain the increment value.
P Number of words containing the text of the message to send (see line 4 to P).
35012326 00 July 2006
433
Appendices
Example of use The example below shows the values corresponding to the word table %MW0:38
(data to send) of the GET_MSG(ADR#0.0.4,%MW0:38,%MW100:4) function;
Value Comment
%MW14
%MW15
%MW16
%MW17
%MW18
%MW19
%MW20
%MW21
%MW22
%MW23
%MW24
%MW25
%MW26
%MW27
%MW6
%MW7
%MW8
%MW9
%MW10
%MW11
%MW12
%MW13
Word number
%MW0
%MW1
%MW2
%MW3
%MW4
%MW5
%MW28
%MW29
NS
N sp
15
3
24
16#0030
AN
A sp
0
W sp
10 espesp
°C
0
3
11 e esp
= sp
__
_ sp mp er at ur
16#CC17
6
70
Te sp D
Y esp
Marker
Command number for GET_MSG
Byte size of the following zone which includes 35 word
Message text
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (end)
End of message mark
Text position (line number)
Text position (column number)
Message characteristics (no attribute or double font)
Message characteristic (no printing)
Position of the variable from the start of the message
Number of characters to display
Additional command (entered after display)
Reserved value
Type of entry field (AN = start of ANA)
Type of entry field (continued)
Reserved value
Type of variable to display (W = word type variable)
Address index for the variable to display (%MW10)
Display format (sp for a non signed variable, sp for the start of the decoding of decimal places after the point)
Display format continued (sp for the end of the coding of the number of digits after the point, D for the decimal format)
The variable must be updated
434 35012326 00 July 2006
Word number
%MW30
%MW31
%MD32
%MD34
%MD36
Value
0
0
I esp
0
50
Comment
Entry is incremental
The variable is not limited
Minimum limit value
Maximum limit value
Increment value
Appendices
35012326 00 July 2006
435
Appendices
PLC alarm message display: SEND_ALARM function
Introduction Alarm messages can be constructed from the PLC application by creating the send using internal words (%MWi) as intermediaries to display them on a CCX17 console screen. This is the role of the SEND_ALARM function.
436 35012326 00 July 2006
Appendices
Data to send parameter coding
The table below shows the significance of the different words which constitute the following parameter: Data to send (37 words maximum).
3
4
1
2
Word number
Meaning contains a marker of value 16#CC17, contains value 0 contains the length in bytes and the zone of the following words, contains the imaginary number given to the alarm message (this word is used after deactivating the alarm if necessary). The value of this word must be between 900 and 999.
5 to P contain the message text to send, this being the characters that are underlined representing the characters expected during the display of a variable. The maximum length of this text is 40 characters.
If the text is composed of an odd number of characters, the last byte is worth 0, if the text is of even length and if it is less than 39 characters, the last byte must contain the value 0,
P +1 and 2 This two word zone (four characters) contains the message characteristics and is structured as follows:
Character 1 This character (in capitals) corresponds to the character font size: z z
S = normal size,
D = double width or height.
Character 2
Characters 3 and
4 corresponds to the printing option: z Y = yes, z N = no.
correspond to the overprinting option: z z
Y followed by a space = yes,
N followed by a space = no.
P+3
P+4
P+5
P+6
P+7 and 8
If you do not want to display a variable, the following word must be at 0 (in this instance, following parameters is ignored), otherwise the following parameters must be added: contains the position of the variable to display, counted in number of characters in relation to the start of the message.
contains the number of characters to display for the variable.
contains the value 16#0030.
contain the type of entry field: z z z
BIT +space = bit type,
ANA + space = word type,
LNG + space = double word type,
P+9
P+10
P contains value 0.
contains the type of variable to display: z B +space = bit type, z z
W + space = word type,
DW = double word type,
Number of words containing the text of the message to send (see line 5 to P).
35012326 00 July 2006
437
Appendices
Word number
Meaning
P+11 contains the address index of the variable to display.
P+12and 13 contain the display format for the variable and are structured in the following ways:
Byte 1
Bytes 2 and 3 specifies if the variable is signed (sign +), or not (space), specifies the display format:
ASCII or DIGITAL without decimal places
DIGITAL with less than ten decimal places
DIGITAL with at least ten decimal places
Byte 2 Byte 3 the ASCII code for the space, that being 20 the ASCII code for the space, that being 20 the ASCII code for the number of tens of decimal places the ASCII code for the number of decimal places the ASCII code for the number of decimal place units
P
Byte 4 specifies the display type: z z z
N = no format,
D = Digital,
A = ASCII
Number of words containing the text of the message to send (see line 5 to P).
438 35012326 00 July 2006
Example of use
Appendices
The example below shows the values corresponding to the word table %MW0:29
(data to send) of the SEND_ALARM(ADR#0.0.4,%MW0:29,%MW100:4) function;
Value Comment
%MW14
%MW15
%MW16
%MW17
%MW18
%MW19
%MW20
%MW21
%MW22
%MW23
%MW24
%MW25
%MW26
%MW27
%MW6
%MW7
%MW8
%MW9
%MW10
%MW11
%MW12
%MW13
Word number
%MW0
%MW1
%MW2
%MW3
%MW4
%MW5
%MW28
0
SY
Y sp
19
3
16#0030
AN
A sp
0
W sp
10 espesp
= sp
__
_ sp
°C fe sp f or r sp
Su rc ha uf
16#CC17
0
52
900 sp D
Marker
Imposed value
Byte size of the following zone which includes 26 word
Alarm message number
Message text
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (end)
End of message mark
Message characteristic (Normal size, printing)
Message characteristic (overprinting)
Position of the variable from the start of the message
Number of characters to display
Reserved value
Type of entry field (AN = start of ANA)
Type of entry field (continued)
Reserved value
Type of variable to display (W = word type variable)
Address index for the variable to display (%MW10)
Display format (sp for a non signed variable, sp for the start of the decoding of decimal places after the point)
Display format continued (sp for the end of the coding of the number of digits after the point, D for the decimal format)
35012326 00 July 2006
439
Appendices
Display of status, alarm or a group of messages contained in the CCX 17 memory: ASK_VALUE, DISPLAY_MSG, GET_VALUE, DISPLAY_ALRM and
DISPLAY_GRP functions
Introduction
Example of use
For these functions it is possible to send them by using internal words (%MWi) as intermediaries.
The Data to send parameter requires one word which contains accordingly: z
The status message number, z z
Alarm message number,
Message group number
The example below shows an example of a function using the word %MW0 (data to send).
DISPLAY_GRP(ADR#0.0.4,%MW0,%MW100:4) with %MW0:=3
440 35012326 00 July 2006
Appendices
Display of luminous column LEDS: CONTROL_LEDS function
Introduction It is possible to set the relay status (version 2.1 and above) and the LEDs on the luminous screen of a CCX17 console, then to send them using internal words
(%MWi) as intermediaries. This is the role of the CONTROL_LEDS function.
Data to send parameter coding
Meaning
1
2
Word number
The table below shows the significance of the different words which constitute the following parameter: Data to send (2 words).
contains a marker of value 16#CC17, indicates the coding of each LED as well as the relay state to send to the terminal.
z bits 0 to 3: green LED status, z bits 4 to 7: yellow LED status, z z bits 8 to 11: red LED status, bits 12 to 15: relay status, the state of each of the LEDS is coded on four bits as follows: z z z
0000: unchanged LED status,
0001: LED off,
0010: LED on, z 1111: LED flashing.
the relay status is coded on bits 12 to 15 as follows: the state of each of the indicators is coded on four bits as follows: z z z
0000: unchanged relay status,
0001: open relay status,
0010: closed relay status.
Example of use The example below shows the values corresponding to the word table %MW0:2
(data to send) of the CONTROL_1EDS(ADR#0.0.4,%MW0:2,%MW100:4) function;
Value Comment Word number
%MW0
%MW1
16#CC17
16#1112
Marker
Green LEDS on, yellow and red off, open relay status
35012326 00 July 2006
441
Appendices
Configuring command keys: ASSIGN_KEYS function
Introduction It is possible to set the configuration of the command keys (bit associated or not, key operating mode, assignment by CCX17…) and send it using internal words (%MWi) as intermediaries to display them on a CCX17 console screen. This is the role of the
ASSIGN_KEYS function.
Data to send parameter coding
Meaning Word number
1
The table below shows the significance of the different words which constitute the following parameter: Data to send (12 words).
2 contains a marker of value 16#CC17,
If a PLC carries out the assignment… this word contains the list of keys to configure. Each command key is coded on a bit (0: non configured, 1: configured): z bit i (i = 1 to 8) command key no. 1.
the following two words indicate the operating mode of each of the command keys. Each key is coded by two bits z 00: Reset, z 01: functioning mode on edge, z z
10: toggle functioning mode,
11: no action.
Bits 2j,2j+1 = command key i+1 (i = 0 to 11) the following eight words contain, accordingly: z a value –1 when the command keys are not affected, z the index of the internal bits affected by the command keys
Word i = command key i (i = 1 to 8)
If a CCX 17 carries out the assignment… this word contains 16#F000 the values of the following ten words are indifferent and will be ignored by the CCX 17 console.
442 35012326 00 July 2006
Example of use
Appendices
The example below shows the values corresponding to the word table %MW0:16
(data to send) of the ASSIGN_KEYS (ADR#0.0.4,%MW0:16,%MW100:4) function;
Value Comment Word number
%MW0
%MW1
%MW2
%MW3
%MW4
%MW5
%MW6 to
%MW15
10 rc
-1
16#CC17
16#000F
16#FF09
16#00FF
Marker
Command keys 1 to 4 are configured, the others are not.
Key 1 in edge mode (01), key 2 in toggle mode (02), keys 3 and 4 inhibited (00), the others not programmed (11)
Key 1 affected by bit %M10
Key 1 affected by bit %M11
Keys 3 to 8 not affected
35012326 00 July 2006
443
Appendices
Generic send command: PANEL_CMD function
Introduction It is possible to manage different command types (clearing, printing) and to send them by using internal words (%MWi) as intermediaries. This is the role of the
PANEL_CMD function.
Data to send parameter coding
Meaning
1
2
Word number
The table below shows the significance of the different words which constitute the following parameter: Data to send (3 words maximum).
3 contains a marker of value 16#CC17, contains the command number: z 1: clear screen, z 2: clear a line, z z z
9: print the alarm message log,
10: clear the alarm message log,
11: print the alarm log z z z
13: clear the alarm log,
29: clear the alarm (from 1 to 300) destined for CCX 17,
30: clear the alarm (from 900 to 999) destined for the PLC.
indicates the command parameter.
z clear line = line number, z z cancel alarm = alarm number, other commands: no object.
Example of use The example below shows the values corresponding to the word table %MW0:2
(data to send) for the PANEL_CMD(ADR#0.0.4,%MW0:2,%MW100:4) function;
Value Comment Word number
%MW0
%MW1
16#CC17
1
Marker
Clear screen
444 35012326 00 July 2006
Glossary
A
AS-i V2
AS-interface
Actuator Sensor interface version 2, accepting extended address slaves.
Actuator Sensor interface.
C
CCX17
Channel group
CPU
Family of Schneider Automation Human-Machine Interface terminal.
Channels of the same type with common parameters. This notion concerns certain application-specific modules such as discrete modules.
Central Processing Unit: generic name used for Schneider Automation processors
D
Discrete Discrete I/Os
35012326 00 July 2006
445
Glossary
F
FIPIO
I
IP67
Field bus used to connect sensor or actuator type devices.
Family of Schneider Automation hardware products consisting of sealed I/O modules which connect to the FIPIO field bus, used to produce automated systems with distributed I/Os.
M
Momentum I/O modules using several open standard communication networks.
P
PL7 Junior and
Pro
PV
Schneider Automation PLC programming software.
Identifier indicating the product version.
T
TBX I/O modules remoted on the FIPIO bus.
TSX/PMX/PCX57 Families of Schneider Automation hardware products.
446 35012326 00 July 2006
Index
Symbols
A
Access to the configuration editor
Accessing the configuration editor, 66
Accessing the debug editor
Adding a profile
Adding a slave
Adding an
Addressing
Adjustement
35012326 00 July 2006
A C
Adjustment objects
Advanced operation
Analog Parameters
Analog Value Modification
Application-specific function
Application-specific instructions, 62
AS-i slave
Automatic slave addressing
B
Built-in application-specific interfaces, 30
447
Index
C
Channel diagnostics
Channel fault
Combination of parameters
Command objects
Configuration of reflex function blocks, 205
Configuration screen
Configuring slaves
Configuring the reflex function blocks, 202
Confirming the configuration, 73, 74
Connect
Connecting
Constants
D
Data exchange off mode
Debug screen
Debugging
448
Debugging Screen
Debugging screen
Declaration of a module on the FIPIO bus, 71
Declaration of an I/O module, 70
Device Connection
Device connection
Diagnostics mode
E
Event
Explicit objects, 143, 145, 146, 147, 149,
External errors
F
Fallback to 0
35012326 00 July 2006
Family
Fault processing by program, 75
Faulty slave
Function
G
I
Implicit objects
Indexable objects
Internal errors
L
Language objects, 141, 143, 145, 146, 147,
35012326 00 July 2006
Index
M
Maintain
Maintain outputs
Master/Slave
Module diagnostics
Module fault
Module number
Module selection
O
Offline mode
Operating mode
P
Parameter
Parameter Modification
Parameters
Discrete, 109, 110, 111, 112, 113, 115,
449
Index
In-rack discrete outputs, 101, 102
Momentum discrete outputs, 106
TBX discrete outputs, 104, 105
Performance
Performances
Processing of faults by program, 77
Profile
Protected mode
R
Reactivation
Reading adjustment parameters, 49
Reflex function configuration editor, 203
450
Reflex functions
Monostable with time delay, 170
Operation-idle timer with value selection,
Restoring adjustment parameters, 53
S
Saving adjustment parameters, 51
Security Device
Selecting the module
Selection of modules
35012326 00 July 2006
Slave Address Modification
Slave Insertion
Slave number
Slaves
Slaves' status
Slaves’ status
Software installation
Status objects
Structure of a standard address AS-i
Structure of an AS-i slave
Structure of an extended address AS-i slave
T
Task
TSX SAY 100
TSX SAY 100 module
TSX SAY 1000
TSX SAY 1000 module
35012326 00 July 2006
U
W
Wiring test mode
Writing adjustment parameters, 50
Index
451
Index
452 35012326 00 July 2006
Download
Advertisement
Key features
Software implementation of PLC applications
Configuration, debugging, and exchange management
Detailed information for Premium/Atrium PLCs
Application-specific functions using PL7 software
I/O control and fault identification
Frequently asked questions
This manual covers the software implementation of applications (except communication applications) on Premium/Atrium using PL7 software.
Application-specific functions are automated functions that interface with the control part (the PLC program) and the operational part (sensors, actuators, and man/machine interfaces).
An application-specific function is installed using standard PL7 tools and application-specific screens, configuration screens, adjustment screens, debug screens, language objects and instructions.