Programador Pre Virador PDF
Programador Pre Virador PDF
Programador Pre Virador PDF
Foreword
• This manual contains text, diagrams and explanations which will guide the reader in the
correct programming and operation of the α2 series controller.
• Before attempting to install or use the α2 Series Controller this manual should be read and
understood.
• If in doubt at any stage of the installation of the α2 Series Controller always consult a
professional electrical engineer who is qualified and trained to local and national standards
which apply to the installation site.
• If in doubt about the operation or use of the α2 Series Controller please consult the nearest
Mitsubishi Electric distributor.
• Under no circumstances will Mitsubishi Electric be liable or responsible for any consequential
damage that may arise as a result of the installation or use of this equipment.
• All examples and diagrams shown in this manual are intended only as an aid to understanding
the text, not to guarantee operation. Mitsubishi Electric will accept no responsibility for actual
use of the product based on these illustrative examples.
• Please contact a Mitsubishi Electric distributor for more information concerning applications in
life critical situations or high reliability.
• This manual is subject to change without notice.
This manual confers no industrial property rights or any rights of any other kind, nor does it
confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any
problems involving industrial property rights which may occur as a result of using the contents
noted in this manual.
© 2005 MITSUBISHI ELECTRIC CORPORATION
α2 Simple Application Controllers
α2 SIMPLE APPLICATION
CONTROLLERS
PROGRAMMING MANUAL
i
α2 Simple Application Controllers
ii
α2 Simple Application Controllers
Guidelines for the safety of the user and protection of α2 Simple Application
controllers
This manual provides information for the use of α2 Simple Application controllers. The manual
has been written to be used by trained and competent personnel. The definition of such a
person or persons is as follows;
a) Any engineer who is responsible for the planning, design and construction of automatic
equipment using the product associated with this manual should be of a competent
nature, trained and qualified to the local and national standards required to fulfill that
role. These engineers should be fully aware of all aspects of safety with regards to
automated equipment.
b) Any commissioning or service engineer must be of a competent nature, trained and
qualified to the local and national standards required to fulfill that job. These engineers
should also be trained in the use and maintenance of the completed product. This
includes being completely familiar with all associated documentation for the said
product. All maintenance should be carried out in accordance with established safety
practices.
c) All operators of the completed equipment (see Note) should be trained to use this
product in a safe manner in compliance to established safety practices. The operators
should also be familiar with documentation which is associated with the operation of the
completed equipment.
Note : The term ‘completed equipment’ refers to a third party constructed device which
contains or uses the product associated with this manual.
Notes on the Symbols Used in this Manual
At various times throughout this manual certain symbols will be used to highlight points of
information which are intended to ensure the users personal safety and protect the integrity of
equipment. Whenever any of the following symbols are encountered its associated note must
be read and understood. Each of the symbols used will now be listed with a brief description of
its meaning.
Hardware warnings
1 ) Indicates that the identified danger WILL cause physical and property damage.
2 ) Indicates that the identified danger could POSSIBLY cause physical and property
damage.
Software warning
4 ) Indicates special care must be taken when using this element of software.
5 ) Indicates a special point which the user of the associate software element should
be aware of.
iii
α2 Simple Application Controllers
Registration
The company name and the product name to be described in this manual are the registered
trademarks or trademarks of each company.
iv
α2 Simple Application Controllers
Table of Contents
v
α2 Series Applications Controller
vi
α2 Series Applications Controller
vii
α2 Series Applications Controller
viii
α2 Simple Application Controllers Introduction 1
1. Introduction
The α2 Series Controllers provides supervisory control for use in the home, office, factory or
wherever you need it. The α 2 Series Controllers offers flexible I/O control for varied
applications:
Applications
The α2 Series is designed to be used for automatic applications including:
- Lighting, air-conditioning or watering control
- Opening and closing gates
- Security systems
- Domestic systems
- Temperature control
However, the α2 Series Controllers is not designed to be used in the following applications:
- Applications where high reliabilities such as nuclear power control, railway facilities,
airline facilities, vehicles, combustion equipment and medical equipment are required.
- Applications in life critical situations
2 ) Program Input
The user can program directly from the front panel or use the windows based
AL-PCS/WIN-E programming software Ver. 2.00 and upwards. Pictorial representations of
data are used to connect function blocks in both methods. Please refer to the α Software
Manual for details on AL-PCS/WIN-E.
1-1
α2 Simple Application Controllers Introduction 1
9 ) Built-in EEPROM
The built in EEPROM stores the user program non-volatile.
10 )Supports 7 languages
The system supports the following languages: English, German, French, Italian, Spanish,
Swedish and Russian*1.
*1 Ver.3.00 or later
11 ) LCD Screen
Enhanced LCD screen size displays data more clearly and enables the α 2 Series
Controller to display bar graphs and other new data representations.
12 )Increased Memory
The CPU memory for the α2 Series Controller can store 5 kbyte of programming or a
maximum of 200 function blocks.
This manual will describe front panel programming of the α2 Series Controllers, the powerful
function block capabilities, and the functions of the front panel keys.
AL2- ** M R - *
AL2 - Series Controller A - 100-240 VAC
D - 24 VDC
** - Total number of I/O
M - Main Unit R - Relay Type Output
1-2
α2 Simple Application Controllers Introduction 1
Version Description
V1.00 First product
Supports the following points.
• AL2-2DA, AL2-2PT-ADP, AL2-2TC-ADP modules
V2.00 • New function blocks
AO [Analog output] and PID [PID control]
• DCF77 Radio clock
Supports the following points.
• New function blocks
SMR[Short Message Receiving] and CD[Call Detect]
• Enhanced User Program Protection
V2.20
• Enhanced Daylight Saving Time Setup
• Enhanced Dedicated Protocol Communication
• GSM SIM PIN
• Modem Initialization String
Supports the following points.
• Hour Meter backs up by EEPROM (No.197 - 200)
V3.00
• Display Buffer Read by Dedicated Protocol
• Russian language addition
Note;
• AL-PCS/WIN-E versions lower than V2.00, do not communicate with the α2 series.
• AL-PCS/WIN-E versions lower than V2.30, do not use the AL2-2DA, AL2-2PT-ADP or
AL2-2TC-ADP.
1-3
α2 Simple Application Controllers Introduction 1
MEMO
1-4
α2 Simple Application Controllers Function Block Programming 2
S B001
I01
C OS O01
One Shot
I02 1 B002
2 S B003
I03 3 OR R SR O02
4
Set/Reset
O03
I0n - Input n
O0n - Output n
OR - OR Boolean Function Block
SR - Set/Reset Function Block
OS - One Shot Function Block
The user can build a complex circuit in small, easy steps by starting at the input and working
forward in a logical manner. The α2 will gather and process information and provide the
necessary control for the application according to the system algorithm. Each function block
provides specific control parameters, accessible by the user, to tailor each program for
complete application suitability. The function blocks are connected together to form a circuit
using the Function Block Diagram (FBD.)
2-1
α2 Simple Application Controllers Function Block Programming 2
2.1.1 Inputs
The α 2 Series Controller will accept both digital (On/Off) and analog (mV value based)
electrical information through the system Inputs. Please refer to the α2 Hardware Manual for
electrical information, wiring diagrams and input specifications. Depending on the specific
controller there are either 14 or 24 input version types of the α2 Series Controller. The Inputs
are referenced to I01, I02, ..., I15.
If the front panel keys are used as auxiliary inputs on the FBD, their primary function, as front
panel display navigators, will be disabled.
2-2
α2 Simple Application Controllers Function Block Programming 2
2-3
α2 Simple Application Controllers Function Block Programming 2
2.1.5 Outputs
Table 2.5: Outputs for the AL2-10MR-* Controller
Outputs Description
O01 - 04 Signal output
N01 No
ON: The back light is “OFF” in LCD.
N02*1
OFF: The back light is controlled by the “Light Time” setting in Menu.
ON: The back light is “ON” in LCD.
N03*1
OFF: The back light is controlled by the “Light Time” setting in Menu.
ON: The user screen is controlled by the setting of “Display Manager” with AL-PCS/
N04 WIN-E.
OFF: The user screen is controlled by user program.
Note: *1 When both N02 and N03 are ON and hence the back light is “ON” because N03 is
given the priority.
Note: *1 When both N02 and N03 are ON and hence the back light is “ON” because N03 is
given the priority.
2-4
α2 Simple Application Controllers Function Block Programming 2
Note: Do not simultaneously program the α 2 Series Controller from the direct
programming keys and AL-PCS/WIN-E Ver. 2.00 methods as this may result in
unexpected operation and possibly cause harm.
2-5
α2 Simple Application Controllers Function Block Programming 2
MEMO
2-6
α2 Simple Application Controllers System Menu 3
3. System Menu
The Edit Menu and the Function Block Edit Menu can be accessed when in either ProgEdit or
Monitor. These menus can be used to create and/or change programs steps or values.
Use the “OK” key to enter a programming option or to enter data into memory.
Set all the data on the screen before using the “OK” key to write the data to the system
memory. If there are multiple data screens in an option, enter the required data and accept
each screen with the “OK” key.
The “ESC” key will move the screen back to a higher menu option. It will cancel any data input
that has not been accepted with the “OK” key.
Note:
Use the “ESC” key to exit the option to the higher menu; at times, it will be necessary to press
the “ESC” key a number of times to move through multiple programming layers.
3-1
α2 Simple Application Controllers System Menu 3
3-2
α2 Simple Application Controllers System Menu 3
To pMe n u OK
10 : 19 F r i Ru n / S t o p ESC
Run Mode
I : •2• •5• • •9 Ru n S t op
•1• • •5 → Ru n
O: 1 • • 4 • • • 8 OK or ESC
E: 1• • 4
A : • 23 •
1
Pa r ame t e r Refer to Figure 3.2
EI : 1• • 4 2
EO: • 2 3 •
3
P r o gEd i t Refer to Figure 3.3
4
5
C l o c kSe t Refer to Figure 3.4
6
LANGUAGE LANGUAGE
En g l i s h
Ge r ma n
F r enc h
I t a l i an
Sp a n i s h
Swe d i s h
Ru s s i a n *1
7
Ot h e r s . . . Refer to Figure 3.5
8
NoDa t a
S e t u p CD Se t u p CD
NoDa t a
3-3
α2 Simple Application Controllers System Menu 3
Ed i t Me n u
B l oc k 0FB
P r o gS i z e
Memo r y 0%
J ump
J ump
M I O K E*4
M0 1 *5
Sy s t emB i t
NewFB
FB Se l e c t
AND
Ex i t Ca l l De t e c t m
Mn emo n i c
I -
01
3-4
α2 Simple Application Controllers System Menu 3
GMT Z o n e C l o c k Se t
GMT Z o n e
0 h 0 0m
Ra d i oC l o c k Ra d i oC l o c k Ra d i oC l o c k
Ra d i oC l o c k No t Us e
DCF7 7
I n p u t *1 Ra d i oC l o c k
I npu t
I 01
T i me D i f f e r Ra d i oC l o c k
*1 T i me D i f f e r
0 . 0h r s
*1
Ma n u a l Ma n u a l
St ar t Ac t .
OK or ESC
*1
When DCF77 Radio Clock menu is not set,
these items will not be displayed.
Caution
When setting the Real Time Clock or inputting a daily clock adjustment to the following menu
functions, please change the mode to Stop.
• ClockSet in ClockSet Menu
• Correct in ClockSet Menu
3-5
α2 Simple Application Controllers System Menu 3
3-6
α2 Simple Application Controllers System Menu 3
Ot h e r s . . .
7 Ve r s i o n
Ve r s i o n
8
Refer to
Figure 3.1 Ve r * . * *
Sc a n T i me Sc a n T i me
Sc a n T i me Mo n i t o r Cu r . 0ms
Ma x . 1 2ms
Mi n 0ms
Re s e t Re s e t
Sc a n T i me
OK or ESC
Se t u p
Pa s swo r d Pa s swo r d
D i s pPa s s Se t u p
D i s pPa s s
Le v e l 1 D i s pPa s s
Le v e l 2 Leve l 1
Le v e l 3
Me n uKe y
Me n u Ke y No t Us e
ON + ESC
Ke y
9
Summe r T i me Refer to Figure 3.6
10
11
Se r i a l Com*1 Refer to Figure 3.7
12
*1 AL2-14MR-*, AL2-24MR-* Only
Se t u p
L i gh t T i me L i gh t T i me
2m
13
An a l o g In Refer to Figure 3.10
14
P r o g r am
P r o gC l e a r Cl ea r
OK or ESC
P r o gT r a n *2
3-7
α2 Simple Application Controllers System Menu 3
Figure 3.7: Serial Com in Run/Stop Mode Operation (AL2-14MR-*, AL2-24MR-* Only)
11 Se r i a l Com
12 No t Us e
- In Stop mode, Mo d em Mo d emI n i t Mo d emI n i t 0 1
refer to Figure 3.5 Comma n d Comma n d
- In Run mode, [ ]
refer to Figure 3.13 y z { | } ! " #$
De l a y T i me Mo d emI n i t
De l a y T i me
0s
GSM 15
Refer to Figure 3.8
16
O t h e r Com O t h e r Com
Comf o r ma t 17
Refer to Figure 3.9
18
S t a t i o n No O t h e r Com
S t a t i o n No
No . 0
L i n kB l o c k O t h e r Com
L i nk B l oc k
3-8
α2 Simple Application Controllers System Menu 3
GSM I n i t
De l a y T i me De l a y T i me
0s
P I N Co d e P I N Co d e P I N Co d e
Arrow key
Se t u p Se t u p
**** "****"
Arrow key
GSM S t a t u s GSM S t a t u s
St a t us GSM S t a t u s
St a t us
0 0 0 0H
CME E r r o r GSM S t a t u s
CME E r r o r
-1
CMS E r r o r GSM S t a t u s
CMS E r r o r
-1
S i gS t r e n g GSM S t a t u s
S i gS t r e n g
0%
3-9
α2 Simple Application Controllers System Menu 3
Ba u d r a t e Ba u d r a t e
3 0 0 b p s *1
6 0 0 b p s *1
1 2 0 0 b p s *1
2 4 0 0 b p s *1
4 8 0 0 b p s *1
9600 bps
19200 bps
De f a u l t *1 When setting for GSM,
300 to 4800 bps will not
be displayed.
3 - 10
α2 Simple Application Controllers System Menu 3
Ca l i b r a t e*3 I 0 2*2
Ca l i b r a t e
- 50 ° C
450 ° C
Of f s e t f i ne I 02
Of f s e t f i ne
0°C
I 0 3 : PT 1 0 0*1 I 03 I 0 3*2
Mo d e*3 No r ma l
TC
:
: PT1 0 0
:
: Ca l i b r a t e*3 I 0 3*2
: Ca l i b r a t e
:
: - 50 ° C
200 ° C
I 0 8*1 Of f s e t f i ne I 03
Of f s e t f i ne
0 . 0°C
3 - 11
α2 Simple Application Controllers System Menu 3
• LANGUAGE:
Choose the on-screen language from English, German, French, Italian, Spanish, Swedish,
or Russian*1.
• Others
*1 Ver. 3.00 or later
Caution
Perform the forced stop operation only after thoroughly checking that it is safe to do so.
Damage to the machine or controller or a safety issue could arise if the forced ON/OFF is
performed inappropriately.
If proper precautions are not taken, damage to the equipment or machine failure may occur.
3 - 12
α2 Simple Application Controllers System Menu 3
To pMe n u OK
10 : 19 F r i Ru n / S t o p ESC
Stop Mode
I : •2• •5• • •9 S t op Ru n
•1• • •5 →S t op
O: 1• •4• • •8 OK or ESC
E: 1• •4
A: • 23 • 1
Pa r ame t e r Refer to Figure 3.2
2
EI : 1• • 4 19
Mo n i t o r Refer to Figure 3.12
20
EO: • 2 3 •
5
C l o c kSe t Refer to Figure 3.4
6
LANGUAGE LANGUAGE
En g l i s h
Ge r ma n
F r en c h
I t a l i an
Sp a n i s h
Swe d i s h
Ru s s i a n *1
21
Ot h e r s Refer to Figure 3.13
22
Ed i t Me n u
B l ac k 4FB
P r o gS i z e
Memo r y 1%
J ump
J ump
M I O K E*2
M0 1 *3
Ex i t S y s t emB i t
*2 Select the following category by pressing " and " keys.
- M ↔ I ↔ O ↔ K ↔ E ↔ A ↔ N ↔ EI ↔ EO ↔ B
*3 Select the jump target by pressing " and " keys.
3 - 13
α2 Simple Application Controllers System Menu 3
Sc a nT i me Sc a nT i me
Sc a n T i me Mo n i t o r Cu r . 0ms
Ma x . 1 2ms
Mi n 0ms
Re s e t Re s e t
Sc a nT i me
OK or ESC
Se t u p
Pa s swo r d Pa s swo r d
D i s pPa s s Se t u p
D i s pPa s s
Le v e l 1 D i s pPa s s
Le v e l 2 Lev e l 1
Le v e l 3
Me n uKe y
Me n u Ke y No t Us e
ON + ESC
Ke y
9
Summe r T i me Refer to Figure 3.6
10
Se r i a l Com* 11
Refer to Figure 3.7
12
An a l o g In 13
Refer to Figure 3.10
14
3 - 14
α2 Simple Application Controllers System Menu 3
3 - 15
α2 Simple Application Controllers System Menu 3
3.6.1 ProgEdit
Refer to chapter 4, Direct programming, for detailed instructions on programming the α2
Series Controller.
3.6.3 ClockSET
To set the Clock:
1 ) From the TopMenu, scroll to “ClockSet” and press the “OK” key.
2 ) From the options that appear, choose “ClockSet” and press the “OK” key.
3 ) Use the arrow keys to move to an area that needs to be changed.
4 ) Adjust with the “+” or “-” keys.
5 ) Repeat steps 3-4 until ALL changes have been completed.
6 ) Press the “OK” key to accept all the changes or the “ESC” to discards the changes.
7 ) Press the “ESC” key to return to the Top Menu.
Caution
When setting the Real Time Clock or inputting a daily clock adjustment to the following menu
functions, please change the mode to Stop.
• ClockSet in ClockSet Menu
• Correct in ClockSet Menu
Note:
The date setting can be displayed as yyyy/mm/dd, dd/mm/yyyy, or mm/dd/yyyy by
manipulating the “+” and “-” keys. The day of the week will update automatically as the date is
changed.
3 - 16
α2 Simple Application Controllers System Menu 3
Note:
The “Input No.”, “TimeDiffer” and “Manual” selections will only be displayed when
“DCF77” has been enabled from the “RadioClock” menu.
The error message “No Signal!” will flash on the headline if the controller does not receive
the DCF77 signal when the input is setup for the RadioClock function. If there should be a
signal in the installation area, check the setup and hardware for faults.
When in STOP mode and “Start Act.” is used to manually start DCF77 decoding, the user must
check the state of M10 (decoding active flag) 30 minutes after starting the decoding. If M10 is
off, DCF77 decoding finished without error. If M10 is still ON, there is a problem with either the
wiring or the availability of the signal in the location of use (e.g. antenna problems). The user
should check both possible causes.
3 - 17
α2 Simple Application Controllers System Menu 3
3.6.5 SummerTime
The Summertime menu will display six choices when entered.
Cancel - Turns off the Summertime clock setting.
Manual On - Moves the clock one hour ahead immediately and will remain ON until cancelled.
Date Type - Set the On date, Off date, and Time adjustment.
UK Type - Last Sunday of March to the last Sunday of October.
US Type - First Sunday of April to the last Sunday of October.
EU Type - Last Sunday of March to the last Sunday of October.
Free Type - Set the On/Off date among each Sundays, Hour of time change, and Adjust time.
The time changes for the UK timezone take place at 1:00 AM in the Spring and 2:00 AM in the
Autumn. Time changes in the US and EU setting take place at 2:00 AM in the Spring and 3:00
AM in the Autumn.
If the controller time has been adjusted for Summertime, an “s” will precede the hour number
on the display screen.
Free S U M M E R T I M E
Note:
When Summertime is in effect, the clock should not be set to the changeover time. For
example, the clock should not be set to 2:00 a.m. on March 7, 2002 when US Summertime is
enabled. There will be an error in the displayed time.
3 - 18
α2 Simple Application Controllers System Menu 3
3.6.6 DispPass
DispPass provides the α2 Series Controller with three distinct security levels, limiting the
users’ ability to make changes to program parameters (i.e. the SetPeriod parameter of the
SpeedDetect FB). A non-authorized user will be able to navigate the display screen from field
to field, but will not be able to make changes without, first, entering the appropriate password.
There are three passwords that can be set from the front panel or the VLS software. Each
password can control access to many different displayed parameters.
The security level for a displayed parameter must be assigned with the VLS software but, the
actual password can be set, changed or removed with the front panel keys. The following is
the step-by-step process for modifying password settings.
To set the Level 1, Level 2 or Level 3 Password:
1 ) From the TopMenu, scroll to “Others...” and press the “OK” key.
2 ) From the options that appear, scroll to “DispPass” and press the “OK” key.
3 ) Select “Level 1”, “Level 2” or “Level 3”
4 ) Enter the Password with the +, - and directional buttons.
5 ) Press OK to activate the password.
The example window below shows how to assign a password to a function block parameter
being displayed on the front panel. In this example, the SpeedDetect function block has been
used.
3 - 19
α2 Simple Application Controllers System Menu 3
3.6.7 Password
The password consists of four digits and will prohibit entry into the ProgEdit, Monitor, Disp
Pass and Serial Com modes only. All other menu options can be accessed when a Password
is used.
To Enter a Password:
1 ) Select “Others...” Menu Option.
2 ) Select “Password” from the “Others...” Menu Options
3 ) Use the “+” and “-” keys to enter the desired password.
4 ) Press the “OK” key to accept and activate the password.
5 ) A key symbol will now be displayed at the top of the α2 display.
To Cancel a Password:
1 ) Select the “Others...” Menu Option.
2 ) Select “Password” from the “Other” Menu Options. “Cancel Password” should appear on
the top of the screen.
3 ) Use the “+” and “-” keys to enter the current password.
4 ) Press the “OK” key to accept and deactivate the password.
5 ) The key symbol will be removed from the α2 display.
Note 1: A Password protected program in an AL2-EEPROM-2 Cassette can be run from and
be downloaded into the main body of the controller.
Note 2: A controller containing a Password protected program can accept or transfer
programs to an AL2-EEPROM-2.
Note 3: The Password can also be set/deleted from the AL-PCS/WIN-E software or deleted by
the “PROGCLEAR” command.
When the protection is set, the program password can't be changed at α 2 by soft key
operation.
The program read protection is reset, when the controller content is erased (VLS or α2) or an
unprotected user program (program read protection not set) is downloaded by VLS.
This protection doesn't work in older α2 (FW version 1.00 and 2.14), but it is also not reset in
those controllers, thus it is inherited in case of copying by VLS or memory cassette to another
α2.
When the program read protection is set, it`s also not possible to upload a user program with
an older version of VLS.
Copying the user program to a memory cassette is also prohibited, when the protection is set.
3 - 20
α2 Simple Application Controllers System Menu 3
Note:
When the program read protection function is used and the password is forgotten, the program
can't be recovered by any methods. So, please take care to handle the function.
The following table shows the possible and prohibited actions in case the Program Read
Protection is set.
Action Comment
Program Download (VLS to α2) 9
Program Upload (α2 to VLS) -
For monitoring the program must be
exists in the PC that runs VLS for moni-
Monitoring 9 toring, thus the user program can be seen
anyway.
- Password
0000 to 9999(Four digits)
- Program Read Protection
10000 to 19999(Five digits)
3 - 21
α2 Simple Application Controllers System Menu 3
Command - Enter the AT command for the modem to be connected to the controller.
Reference the Modem User manual for details on that unit’s AT command. Choose the first
letter or symbol by using the ( ) and ( ) arrows. When the symbol is showing in the command
line, use the ( ) and ( ) arrows to move to adjoining spaces. Enter up to 64 letters/symbols
and accept the whole string with the “OK” key when finished inputting the data. (There is no
need to accept each letter with the “OK” key).
Delay - The Delay function sets the length of time the α2 will wait after power on before setting
the setup AT command to the modem. Choose a value of 0 - 10 seconds using the “+” or “-”
keys. The modem connected to the Personal Computer with VLS software must be set ON
prior to the α2 modem turning on.
The GSM function allows a SMS (Short Message Service) message to be sent to either a
mobile telephone or an email account. The short message provides the remote user with the
identical LCD screen’s data. By recieving a short message by α2, SMR FB bit output or word
output can be changed this remote switch commands carried out. Refer to the α 2
Communication Manual for detailed explanation concerning GSM parameters.
The OtherCom function provides the user with an on-line programming feature using
dedicated protocol. Refer to the α 2 Communication Manual for detailed explanation
concerning Dedicated Protocol parameters.
3 - 22
α2 Simple Application Controllers System Menu 3
To Verify a Program:
1) Install the AL2-EEPROM-2. Refer to the AL2-EEPROM-2 instruction manual for help.
2) Select “Others...” in the Top Menu.
3) Select “ProgTran.”
4) Select “Verify”.
5) Choose “OK” to proceed or “ESC” to exit.
6) If the program is successfully verified, the work “Completed” will blink on screen.
7) If the programs are not the same, the words “Verify Error” will blink onscreen.
1) Install the AL2-EEPROM-2. Refer to the AL2-EEPROM-2 instruction manual for help.
2) Select “Others...” in the Top Menu.
3) Select “ProgTran.”
4) Select “Cassette→”.
5) Choose “OK” to proceed or “ESC” to exit.
6) When the program is successfully transferred, “Completed” will blink on the display.
In case of an α2 version 2.20 controllers in VLS programming software the "Copy to Memory
Cassette protection" can be set. If this option is set, the copy of a program from α2 version
2.20 controller to Memory cassette is prohibited.
3 - 23
α2 Simple Application Controllers System Menu 3
1 ) Before beginning, follow the instructions on preparing the hardware for calibration in the
α2 Hardware Manual, Chapter 12 for the PT100 input and Chapter 13 for the TC input.
2 ) Select “Others...” from the TopMenu while in Stop Mode.
3 ) After setting the mode to TC or PT100 (See the method for changing modes in the previ-
ous description.), select “Calibrate” from the Analog input settings menu.
4 ) Select -50°C and press OK. This completes the offset calibration procedure.
1 ) Before beginning, follow the instructions on preparing the hardware for gain calibration in
the α2 Hardware Manual, Chapter 12 for the PT100 input and Chapter 13 for the TC input.
2 ) Select “Others...” from the TopMenu while in Stop Mode.
3 ) After setting the mode to TC or PT100 (See the method for changing modes in the previ-
ous description.), select “Calibrate” from the Analog input settings menu.
4 ) Select 200°C for the PT100 input or 450°C for the TC input and press OK. This completes
the gain calibration procedure.
Note:
The fine adjust step size for the PT100 mode is 0.5°C and 1.0°C for the TC mode. The
Fahrenheit step sizes are 0.9°F and 1.8°F respectively.
3 - 24
α2 Simple Application Controllers System Menu 3
Note:
In Run Mode, the temperature scale can be checked but cannot be changed.
Note:
System flags, M17 through M24, correspond to the 8 possible temperature input channels, I01
through I08. When the analog input is configured for TC or PT100 input, these system flags will
detect a defect in the ADP module’s operation. An input voltage of more than 11 volts will set
the corresponding flag and indicates a sensor problem. An input voltage of 0 volts will also set
the corresponding flag, but indicates a power failure at the ADP module.
3 - 25
α2 Simple Application Controllers System Menu 3
3 - 26
α2 Simple Application Controllers Direct Programming 4
4. Direct Programming
The α 2 can be programmed using the front panel keys on the α 2 series controller. The
following sections will describe how to connect/disconnect function blocks, set program
parameters, add Function Blocks, and move around within the program.
The ProgEdit mode in the Stop Menu has full programming capability. The Monitor mode in the
Run Menu has the capability to manipulate Function Block values and settings but cannot edit,
change, or delete the existing program.
4.2.1 To connect the blocks from the left (signal provider) block to right (signal
receiver) block.
It is necessary to choose the block to provide the output (step 1), the block to accept the signal
(step 2), and the pin with which to accept the signal (step 3).
1 ) Step 1: Select the block providing the data to be output and move to the right until the
output pin is flashing. Press the “+” button to “add” a block.
01
In
2 ) Step 2: Choices will appear on the right side of the screen that include System Outputs (if
available), existing Function Blocks that have free input pins, and the option to add a new
function block (AddFB, see section 4.4). Scroll to the preferred option and select using the
“OK” key.
01
A d d FB
O0 1
Co n n e c t
4-1
α2 Simple Application Controllers Direct Programming 4
3 ) Step 3: The block accepting the signal will display as many of its input pins as possible (at
times they will not all fit on-screen). Pins that have been used will show as filled triangles;
pins that are open will show as “>” signs. A “Connect” prompt will appear on-screen, either
above or below the left hand block. The current input choice will flash. Scroll to the desired
pin and press the “OK” key to accept. The process is complete.
01 001
P
Co n n e c t
4.2.2 To connect the blocks from the right (signal receiver) block to left (signal
provider) block.
It is necessary to choose the block input pin (Step 1), the signal provider (Step 2), and to
accept the connection (Step 3).
1 ) Step 1: Select the block that will be receiving the signal and move left until an input pin is
flashing. Scroll to the desired unused input pin (“>”). Press the “+” key to begin the
connection process.
01 001
P
In CN
2 ) Step 2: Because output pins may have multiple connections, all the Keys, Function Blocks,
System Inputs, Outputs will show on the left of the screen as well as an option to “AddFB”.
Scroll to the preferred option and Press the “OK” key.
Co n n e c t
P
A d d FB
M0 1 CN
3 ) Step 3: The chosen connection will be flashing on-screen along with the “Connect” prompt.
Press the “OK” key to accept.
Co n n e c t
P
In CN
4-2
α2 Simple Application Controllers Direct Programming 4
4.4.1 New FB
To use the New FB option, proceed to the Edit Menu (Chapter 3) using the “ESC” key. Scroll to
the New FB option and press the “OK” key. Scroll to the desired Function Block and press the
“OK” key to create a New FB. The block will appear on the Function Block Diagram board.
FB S e l e c t
AND
OR
Bo o l e a n
Se t / Re s e t
Re t e n t SR
De l a y e d AL
4.4.2 AddFB
When connecting a Function Block, scroll to the AddFB prompt and press the “OK” key. This
invokes the Function Block list. Scroll to the desired Function Block and choose by pressing
the “OK” key. The Function Block will be shown on the screen with the connecting block.
4.5.3 Delete FB
This menu option will Delete the current Function Block. After the Delete FB is chosen, confirm
the delete operation with “OK” or use the “ESC” key to cancel the function. All connections to
the Function Block will be removed with the block.
4-3
α2 Simple Application Controllers Direct Programming 4
4-4
α2 Simple Application Controllers Direct Programming 4
4-5
α2 Simple Application Controllers Direct Programming 4
Input pins will have a smaller solid block next to their arrow to show that they are activated. In
the block at right, the Delay output pins are ON, along with the input and output pins for the
system Output O01.
01 \
001
Ou t
An example of a block that cannot be forced follows.
Ex. Output O01 is connected to System Bit M01. M01 is constantly ON, therefore Output O01
is constantly ON and cannot be forced OFF.
01 \
O0 2
?
_M
4-6
α2 Simple Application Controllers The Logic Function Blocks 5
Logic
Logic Block Memory Section
Block Description
Displayed Use Reference
State
5-1
α2 Simple Application Controllers The Logic Function Blocks 5
5-2
α2 Simple Application Controllers The Logic Function Blocks 5
5-3
α2 Simple Application Controllers The Logic Function Blocks 5
Input Output
On Off
Off On
5-4
α2 Simple Application Controllers The Logic Function Blocks 5
. 4 NAND
Table 5.6: NAND Logic gate
5-5
α2 Simple Application Controllers The Logic Function Blocks 5
5-6
α2 Simple Application Controllers Function Blocks 6
6. Function Blocks
The α2 series controller is fundamentally based on function block programming. The blocks
provide a wide range of possible operations and have been preprogrammed for ease of use.
Some Function Blocks have parameters that can be tailored to meet individual requirements in
the programs. Each function block will have a description of the Block’s purpose, a diagram of
how the Block will appear on-screen, and a description of the inputs, outputs, and available
options.
Table 6.1.1: Function Block List
1 000
The Boolean Function Block uses Boolean
Boolean 2 P O algebra to control the ON/OFF state of an
3 *1 6.3
[BL] output. An operational expression consists
4 BL of either the AND, OR, XOR or NOT form.
000
The Alternate Function Block is used to
reverse the ON and OFF state of the output
Alternate I O as and when the input pin receives a signal.
C 13 Byte 6.6
[AL] The output will be set ON when the input
AL pin goes high and remain ON until the input
receives the second rising edge.
000
I P O
The Flicker Function Block changes the ON
Flicker and OFF state of the output according to a
19 Byte 6.9
[FL] FL
preset flicker time. The time unit can be set
to 10ms, 100ms or 1s increments.
6-1
α2 Simple Application Controllers Function Blocks 6
Memory
FB Name FB Symbol Description of Function Block Use Section
000
Time P O The Time Switch Function Block uses a
Switch predefined time schedule to control the ON *2 6.10
[TS] TS and OFF status of the output.
000
The Analog Output function takes a digital
M P
Analog value input and delivers a corresponding
E 17 Byte 6.14
Output analog voltage or current to a selected
AO
channel on the AL2-2DA module.
000
The Offset Gain Function Block is based
Offset I P
upon a linear function Y=A/B∗X+C to which
Gain 22Byte 6.15
the value obtained from an analog input
[OG] OG
(X:A01-A08) is set.
6-2
α2 Simple Application Controllers Function Blocks 6
Memory
FB Name FB Symbol Description of Function Block Use Section
T h e S c h m i t t Tr i g g e r F u n c t i o n B l o c k
000 compares an input value to preset high and
Schmitt I P O low limits. The output is ON when the input
Trigger value reaches the high limit and then falls 19 Byte 6.18
[ST] ST below the lower limit. The function only
processes the data when the function block
is receiving an input signal.
000
Addition I P O The ADD Function Block is used to 20 Byte 6.24
[ADD] summate two input values
ADD
000
Subtrac- I P O The SUB Function Block is used to subtract
tion 20 Byte 6.25
two input values.
[SUB] SUB
6-3
α2 Simple Application Controllers Function Blocks 6
Memory
FB Name FB Symbol Description of Function Block Use Section
000
Multiplica- I P O The MUL Function Block is used to multiply
tion 20 Byte 6.26
two input values.
[MUL] MUL
000
Division I P O The DIV Function Block is used to divide 20 Byte 6.27
[DIV] two input values.
DI V
000
Calcula- I P O The CAL Function Block is used to perform
tion a calculation from the combination of *3 6.28
[CAL] CA L different Arithmetic function blocks.
000
The GSM SMS Function Block sends the
I P O
SMS LCD screen as a SMS message to either a
[SMS] mobile phone handset or an E-mail account *6 6.30
SMS
for remote maintenance purposes.
6-4
α2 Simple Application Controllers Function Blocks 6
Memory
FB Name FB Symbol Description of Function Block Use Section
000
Random I P O The Random One Shot Function Block
One Shot C emits a random length single pulse to the 19 Byte 6.33
[ROS] ROS output.
000
Delayed I P O The Delayed One Shot Function Block
One Shot C emits a single pulse after a controlled delay 20 Byte 6.34
[DOS] DOS to the output.
000
Delayed I P O The Delayed Alternate Function Block
Alternate C alternates the status of the output with each 16 Byte 6.35
[DAL] DA L pulse after a controlled delay.
6-5
α2 Simple Application Controllers Function Blocks 6
Note:
*1 Number of bytes used = 19 + 1 x (Characters in equation)
*2 Number of bytes used = 8 + 4 x (Number of time switches)
*3 Number of bytes used = 30 + 1 x (Characters in equation)
*4 Number of bytes used is decided by the displayed item.
Displayed Item Number of bytes, α2 Series
Characters 16 + 1 x (Each character displayed)
Value 17
Analog, FB value
Graph 23
Time, Date 14
Time Switch 17
6-6
α2 Simple Application Controllers Function Blocks 6
6-7
α2 Simple Application Controllers Function Blocks 6
6.1 Definitions
DirectSet - Enter a value using the “+” and “-” keys.
Analog In - An analog input value from a System Input (A01, A02, A03,... A08).
FB Value - A value contained in a Function Block (T, t, N, n, Direct set, etc.)
Word Comparison - a 16 bit output value from a Function Block.
6.2 Abbreviations
Table 6.2: Abbreviated terms used in describing function block
Term Description
I Input pin for function block operation
1,2,3,4 Numbered Input pins for boolean logic type function blocks
O Output pin for function block operation
S Set pin for the function block
R Reset pin for the function block
C Clear pin for the function block
U Increments a positive count to the Up/Down Counter Function Block
D Increments a negative count to the Up/Down Counter Function Block
P Preset signal input pin for the Up/Down Function Block
N The count value set by the user, range: 0 - 32767
The actual count value. This value can be set to a one time offset value,
n
range: 0 - 32767
T For Shift function block only. Shift input pin
T User specified Set Time Value, range: 0 - 3276.7sec
t The elapsed time since the function set ON, range: 0 - 32767sec
Note: The following function block information, details specific explanation concerning
front panel programming using the α2 Series Controller. However, it is assumed the
user has read and understood Direct Programming Chapter 4. Thus, is capable of
connecting function blocks together using the dedicated front panel keys. Hence, each
function block provides step by step instructions for direct input having ignored the
initial key presses detailed in Chapter 4.
6-8
α2 Simple Application Controllers Function Blocks 6
1 ) Boolean Operation
1 01
1 2
2 Output
3 3 O=1 * 2 + 3
BL AND OR
6-9
α2 Simple Application Controllers Function Blocks 6
Setup of the Boolean Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : BL
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Select Setup FB using the “ and ” keys and press the “OK” key. The boolean function
block edit screen is displayed as shown.
B0 0 1 : BL 3
[ O= ]
4 ) Enter the boolean expression via the “ , , and keys”. A boolean expression is
displayed as shown.
B0 0 1 : BL 3
[ O=1 * 2 +3 ]
OR
6 - 10
α2 Simple Application Controllers Function Blocks 6
2) Decides the status of the output depending which input pin has
priority.
Output ON OFF
Output ON OFF
6 - 11
α2 Simple Application Controllers Function Blocks 6
Setup of the Set/Reset Function Block directly from the α2 Series Controller
1 ) Allocate the set and reset pins for the function block.
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : SR
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Select Setup FB using the “ and ” keys and press the “OK” key. The Set/Reset priority
screen is displayed as shown.
B0 0 1 : SR
Pr i o r i t y
Se t
Re s e t
4 ) Select the Set or Reset priority using the “ and ” keys and press the “OK” key to return
to the function block edit screen.
6 - 12
α2 Simple Application Controllers Function Blocks 6
Output
1 operation cycle
(time to process program once)
Output
1 operation cycle
(time to process program once)
Output
2 pulse width
1 operation cycle
(time to process program once)
6 - 13
α2 Simple Application Controllers Function Blocks 6
Setup of the Pulse Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : PL
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Select Setup FB using the “ and ” keys and press the “OK” key. Select using the “
and ” keys the initiation type for the pulse operation.
B0 0 1 : PL
R i s eEd g e
Fa l l Ed g e
Bo t hEd g e
4 ) Press the “OK” key to return to the function block edit screen.
6 - 14
α2 Simple Application Controllers Function Blocks 6
2) The clear selection resets the output regardless of the input given.
1 ) Alternate Operation
Input pin I ON OFF
ON
Input pin C OFF
Output ON OFF
6 - 15
α2 Simple Application Controllers Function Blocks 6
1) The lag time setting for energising the output from a given input
signal can be given a controlled delay time; The starting value has a
range from 0s to 32767s
000
I P O 2) The lag time setting for denergising the output from a given input
C signal can be given a controlled delay time; The starting value has a
DL range from 0s to 32767s
Output
3) If the clear signal of the input pin C is turned on while the delay
function block is in operation consequentially the current value of the
ON delay timer and OFF delay timer resets to “0.” Thus, the output is
turned OFF.
Note: The ON/OFF delay time cannot be less than one scan time for the controller;
otherwise, the Delay Function Block will not perform its assigned task for the time
specified. Users can monitor the scan time from the α2 Series Controller. Scan time is
dependent on the user-program; therefore, caution is needed as and when time units
are selected.
1 ) Delayed Operation
Input pin I ON
ON
Input pin C
Output ON OFF
6 - 16
α2 Simple Application Controllers Function Blocks 6
2 ) ON delay timer
Input pin I ON
ON
Input pin C
Output ON OFF
Input pin C
Output
Setup of the Delay Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : DL
T i me u n i t
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” key to set the Time unit for the delayed output.
T i me u n i t
1 0 ms
1 0 0 ms
1 s
4 ) Press the “OK” key having selected the value for the delayed time unit and return to the
function block edit screen. Using the “ and ” keys highlight the Setup FB and press the
“OK” key. The screen displayed is shown.
B0 0 1 : DL
OnDe l a y
Of f De l a y
5 ) Select the On or Off Delay using the “ and ” Keys and press the “OK” key. The Delay
time can be entered using the “+” or “-” keys.
B0 0 1 : DL
OnDe l a y
T= 0 . 1s
t= 0 . 0s
6 ) Press the “OK” key to accept the time figures and subsequently press the “ESC” key to
return to the function block edit screen.
6 - 17
α2 Simple Application Controllers Function Blocks 6
FB The One Shot time T and t can be set using the chosen time units.
000
I P O A Time or Input priority can be set.
C The following items are applicable for the one shot function block:
OS
1) A period of 0s to 32767s for a single pulse output can be set.
Note: The set time cannot be less than one scan time for the controller; otherwise, the
One Shot Function Block will not perform its assigned task for the time specified.
Users can monitor the scan time from the α 2 Series Controller. Scan time is
dependent on the user-program; therefore, caution is needed as and when time units
are selected.
Input pin C
Output ON OFF
2 ) Input priority
Input pin I
Input pin C
Output
set time
6 - 18
α2 Simple Application Controllers Function Blocks 6
Setup of the One Shot Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : OS
T i me u n i t
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” key to set the Time unit for the delayed output.
T i me u n i t
1 0 ms
1 0 0 ms
1 s
4 ) Press the “OK” key having selected the value for the one shot time unit and return to the
function block edit screen. Using the “ and ” keys highlight the Setup FB and press the
“OK” key. The screen displayed is shown.
B0 0 1 : OS
On eSh o t
Pr i o r i t y
5 ) Select the One Shot or Priority option using the “ and ” Keys and press the “OK” key.
The One Shot time can be entered using the “+” or “-” keys.
B0 0 1 : OS
On eSh o t
T= 0 . 1s
t= 0 . 0s
6 ) The Priority can be entered using the “ or ” keys.
B0 0 1 : OS
Pr i o r i t y
T i me
I npu t
7 ) Press the “OK” key to accept the time figures and subsequently press the “ESC” key to
return to the function block edit screen.
6 - 19
α2 Simple Application Controllers Function Blocks 6
3) Blinking operation
000 a) Cycles count (frequency assigned operation) maximum
I P O number of cycles to be set is 32767
b) Time count maximum 32767
FL c) Continuous control
The control operations provides an ON/OFF state for the output.
1) The output state directly reflects the ON and OFF condition of the
input signal at the input pin.
Output 2) The following items are available for other function blocks:
a) On Flicker
b) Current On Flicker
c) Off Flicker
d) Current Off Flicker
e) Cycle or Time
f) Current Cycle or Time
Note: The set time cannot be less than one scan time for the controller; otherwise, the
Flicker Function Block will not perform its assigned task for the time specified. Users
can monitor the scan time from the α2 Series Controller. Scan time is dependent on
the user-program; therefore, caution is needed as and when time units are selected.
Flicker Operation
1 ) Continuous control action
Input pin I ON OFF
ON
Output OFF
6 - 20
α2 Simple Application Controllers Function Blocks 6
Output
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : FL
T i me u n i t
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” key to set the Time unit for the delayed output.
T i me u n i t
1 0 ms
1 0 0 ms
1 s
4 ) Press the “OK” key having selected the value for the flicker time unit and return to the
function block edit screen. Using the “ and ” keys highlight the Setup FB and press the
“OK” key. The screen displayed is shown.
B0 0 1 : FL
OnT i me
Of f T i me
Pe r i o d
5 ) Select the On Time, Off Time or Period option using the “ and ” Keys and press the
“OK” key. The On Time can be entered using the “+” or “-” keys.
B0 0 1 : FL
OnT i me
T= 0 . 1s
t= 0 . 0s
6 ) The OffTime can be entered using the “+” or “-” keys.
B0 0 1 : FL
Of f T i me
T= 0 . 1s
t= 0 . 0s
7 ) The Period can be entered using the “ and ” Keys.
B0 0 1 : FL
T i me
Co u n t
Co n t i n u o u
6 - 21
α2 Simple Application Controllers Function Blocks 6
8 ) Using the “ and ” keys highlight the Time option and press the “OK” key. The Time can
be entered using the “+” or “-” keys.
B0 0 1 : FL
T i me
T= 0 . 0s
t= 0 . 0s
9 ) The Count can be entered using the “+” or “-” keys.
B0 0 1 : FL
Co u n t
N= 0
n= 0
10 )Press the “OK” key to accept the time values and subsequently press the “ESC” key to
return to the function block edit screen.
6 - 22
α2 Simple Application Controllers Function Blocks 6
3) The largest schedule number is given priority when more than one
time switch function block occurs on the same day.
EditData - Edit the data for the time switch number shown in the top line.
NewData - Add a new time switch. Time switch numbers will increment from the highest
current number.
DelData - Deletes a time switch. Higher numbered time switches will decrement.
Choose EditData and enter data as described in the following sections:
6 - 23
α2 Simple Application Controllers Function Blocks 6
The example screen shown at the right shows that the Output will turn ON at the following
times:
B 0 0 1 : TS # 0 1
1 - 34 -
- M- W- - S
1 1 : 2 0→ o n
The first week of the month on Monday, Wednesday, and Saturday at 11:20 AM.
The third week of the month on Monday, Wednesday, and Saturday at 11:20 AM.
The fourth week of the month on Monday, Wednesday, and Saturday at 11:20 AM.
6 - 24
α2 Simple Application Controllers Function Blocks 6
6 - 25
α2 Simple Application Controllers Function Blocks 6
Output 3) One incremental count is only registered if the input pin locates a
rising edge.
5 4
Current value of 4 (=set value)
3 3
counter 2 2
1 1
0 0 0 0 0
Output OFF ON
Setup of the Counter Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown
B0 0 1 : CN
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” Key and enter the counter function block settings using the “+, -, and ”
keys.
B0 0 1 : CN
Co u n t
N= 1
n= 0
4 ) Press the “OK” Key and return to the function block edit screen.
6 - 26
α2 Simple Application Controllers Function Blocks 6
Output 4) The ON status of the output is set from the current value equaling
or exceeding the set value.
5) The current value becomes the set value if the preset pin P is ON;
the status of the output becomes ON.
1 ) Counter Operation of input pin U, input pin D, current value and output
ON
Input pin U OFF
5
Current value of 4 4
up-down counter 1 3 3 1 1
2 2
0 0 -2 -2 0 0 0 -2
Set value (-3) -1 -1 -1
-3 -3 -3
-4 -4
-5
Output ON OFF
6 - 27
α2 Simple Application Controllers Function Blocks 6
2 ) Counter Operation of input pin U, input pin D, input C, input pin P, current value and output
Input pin U
Input pin D
Input pin C
Input pin P
Current value of
up-down counter 2 2
1 1
0 0 -2 0
-3
Set value (-4)
-4 -4 -4
-5 -5
-6
-7
-8
Output ON OFF
Setup of the Up/Down Counter Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : UD
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” Key and enter the Up/Down counter function block settings using the “+, -,
and ” keys. The Direct Set of the count s ettings can be entered.
B0 0 1 : UD
D i r e c t Se t
N= 0
n= 0
4 ) Press the “OK” Key and an Analog In function block value can be entered.
B0 0 1 : UD
D i r e c t Se t
An a l o g I n
FB Va l u e
5 ) Press the “OK” key and using the “ESC” key return to the function block edit screen.
6 - 28
α2 Simple Application Controllers Function Blocks 6
Output If Compare value 1 (V1) and Compare value 2 (V2) satisfies the
operational expression the status of the output is ON.
Setup of the Compare Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : CP
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” Key and enter the function block settings using the “ and ” keys.
B0 0 1 : CP
CmpVa l 1
V1 = V2
0
4 ) Pressing the “OK” key invokes the menu that lists the function block input data type.
B0 0 1 : CP
D i r e c t Se t
An a l o g I n
FB Va l u e
6 - 29
α2 Simple Application Controllers Function Blocks 6
5 ) Press the “OK” Key and a Direct Set value can be entered..
B0 0 1 : CP
CmpVa l 1
D i r e c t Se t
0
6 ) Or press the “ESC” key to return to the function block data input type menu, select the
Analog In selection and press the “OK” key
B0 0 1 : CP
CmpVa l 1
An a l o g I n
A0 1 0
7 ) Or press the “ESC” key to return to the function block data input type menu, select the FB
Value selection and press the “OK” key.
B0 0 1 : CP
CmpVa l 1
No t Ex i s t
Va l i d FB
8 ) Using either the “OK” key or the “ESC” key depending on the acceptance of the setting.
Press the “OK” key when the Condition is highlighted. Thus, selecting the correct
comparator from the range.
B0 0 1 : CP
Co n d i t i o n
V1 = V2
9 ) Having set the V1, condition and V2 simultaneously use the “ESC” key to return to the
function block edit screen.
6 - 30
α2 Simple Application Controllers Function Blocks 6
Output Characteristics
10V
10.1V 20mA
20.16mA
10V 20mA
Analog Analog
Analog
output Analog
output
output output 4mA
4mA
0 4000 2000
0 Digital input 4000 4040 0 0 Digital input 2000 2020
Digital input Digital input
Set up of the Analog Output Function Block directly from the α2 Series Controller
6 - 31
α2 Simple Application Controllers Function Blocks 6
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown
B0 0 1 : CN
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Highlight “Setup FB” and press “OK”.
B0 0 1 : AO
I n p u t Va l
Ch a n n e l
7 ) If an analog input will be used, highlight “AnalogIn” and press “OK.” If not, skip to step 9.
B0 0 1 : AO
An a l o gOu t
An a l o g I n
A0 1 0
8 ) Select the appropriate analog input and press “OK. Skip to Step 11.”
B0 0 1 : AO
I n p u t Va l
Ch a n n e l
9 ) If an FB word output will be used as the input value for the Analog Output FB, highlight “FB
Value” and press “OK.” If not, skip to step 11.
B0 0 1 : AO
An a l o gOu t
Co u n t e r
B0 0 2
6 - 32
α2 Simple Application Controllers Function Blocks 6
10 )Select the appropriate FB output and press “OK using the “+” and “-” keys. After selecting
the appropriate function block, select the FB value to be used. The controller will return to
the “Setup FB” menu. ”
Co u n t e r
Co u n t V a l
11 ) Under the “Setup FB” menu, highlight “Channel” and press “OK.”
B0 0 1 : AO
Ch a n n e l 1
Ch a n n e l 2
13 )After setting up the function block, use the “ESC” key to return to the function block edit
screen.
6 - 33
α2 Simple Application Controllers Function Blocks 6
1) Data output:
a) The resultant of the linear operation is rounded up or down
when the values are within the clamp (limit) values.
Output
b) No signal from the input equates to the function block holding
the previous value obtained from the linear operation.
Upper limit H
(Initial value: +32767)
X: Analog input
(A01 to A08)
6 - 34
α2 Simple Application Controllers Function Blocks 6
Setup of the Offset Gain Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : OG
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” Key and enter the function block settings using the “ and ” keys. The
parameters A, B, X, C, Low limit and High limit have to be specified for the linear
expression to operate correctly..
B0 0 1 : OG
y =A / B∗ x +C
L i mi t : L , H
0
4 ) Using the “ and ” arrows highlight A and press the “OK” key. A Direct Set using the “+
and -” keys can be entered, subsequently press the “OK” key to accept the Direct Set
value. (Repeat operation for B)
B0 0 1 : OG
Co n s t a n t A
D i r e c t Se t
1
5 ) Highlight X using the “ and ” keys and press the “OK” key to set the Analog In channel.
B0 0 1 : OG
y =A / B∗ x +C
L i mi t : L , H
A0 2 : 0
6 ) The Analog In channel can be selected using the “+ and -” keys, subsequently press the
“OK” key to accept the channel.
B0 0 1 : OG
I n p u t Va l
An a l o g I n
A0 1 0
7 ) Highlight C using the “ and ” keys and press the “OK” key to set the constant value.
B0 0 1 : OG
y =A / B∗ x +C
L i mi t : L , H
0
8 ) A Direct Set using the “+ and -” keys can be entered, subsequently press the “OK” key to
accept the Direct Set value.
B0 0 1 : OG
Co n s t a n t C
D i r e c t Se t
0
6 - 35
α2 Simple Application Controllers Function Blocks 6
9 ) Using the “ and ” arrows highlight the high and low limit values.
B0 0 1 : OG
y =A / B∗ x +C
L i mi t : L , H
- 32768
10 )Press the “OK” and a Directset of the Low limit can be entered using the “+ and -” keys.
B0 0 1 : OG
L i mi t L ow
D i r e c t Se t
- 32767
11 ) Press the “OK” key to accept the value and use the “ and ” arrows to highlight the high
limit value. Press the “OK” key and a directset value can be entered using the “+ and -”
keys.
B0 0 1 : OG
L i mi t H i g h
D i r e c t Se t
32767
12 )Press the “ESC” key until the FBd is displayed.
6 - 36
α2 Simple Application Controllers Function Blocks 6
The following Data items can be viewed using the display function
block:
5) Date : mm/dd/yyyy
6) Time : hh:mm
Character strings that run over the available number of spaces on a line will show on the next
line down. Function Block values, analog values, date, and time will not be displayed on the
next line. Function Block and analog values will be automatically updated on the screen as
they change.
When entering character strings, choose the desired character with the “ or “ keys. Move to
the left or right with the arrow keys. Accept the data with the “OK” key after all the data has
been entered.
Wa t e r
P ump
Is
On
The display shows On-screen only when the input is activated.
6 - 37
α2 Simple Application Controllers Function Blocks 6
To edit the time or date, press “OK” key when the appropriate data is flashing. Edit as required
and accept with the “OK” key. To edit the function block values, proceed to the value to be
adjusted as described above. Use the “+” and “-” keys to adjust the value onscreen and in
memory. To exit to the Top Menu, press the “ESC” and “OK” keys simultaneously. The Display
edit mode can be removed from the program by entering the “-” key in the function block setup
when the “e” is flashing. The “e” will disappear when the “-” key is pressed.
Setup of the Display Function Block directly from the α2 Series Controller
1 ) Allocate the input or word pin to be used for the function block.
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : DP
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” Key and enter the function block settings using the “ and ” keys. The
position element and type of data is required.
B0 0 1 : DP
Po s ( 1 , 1 )
NoDa t a
4 ) Press the “OK” key having highlighted Pos( 1,1) and a X and Y interger can be entered
using the “+” and “-” keys. The X and Y values represent the location coordinates for the
displayed data. Press the “OK” key to accept the coordinate values..
B0 0 1 : DP
Po s i t i o n
X = 12
Y = 1
5 ) Using the “ and ” arrows highlight NoData. Press the “OK” key when ready.
B 0 0 1 : DP
S t r i ngs
An a l o g I n
FB Va l u e
TS Da t a
Da t e
T i me
6 - 38
α2 Simple Application Controllers Function Blocks 6
6 ) Highlight the Strings option using the “ and ” arrows and press the “OK” key to accept.
Either a Flicker or Scroll option can be selected to represent the string. If neither is elected
then a fixed position is indirectly chosen..
B 0 0 1 : DP
Po s ( 1 2 , 1 )
F l i cke r
Sc r o l l
7 ) Press the “OK” key when either the Flicker or Scroll option is required. Set the Length (L)
and the Time (T) of the string using the “+ and -” keys.
B0 0 1 : DP
Po s ( 1 2 , 1 )
L= 1
T= 0 . 0s
8 ) Press the “OK” key to enter the character string for the Display Function Block. A
combination of “ and ” and the “ and ” arrows is needed to enter the entire string.
Press the “OK” key to accept. .
B0 0 1 : DP
Po s ( 1 2 , 1 )
[ ]
öùúûü ! " #$
9 ) If Analog In data is required to be displayed press the “OK” when Analog In is highlighted
in step 5. The following screen will be displayed. If an alternate Analog channel is being
used, press the “+ and -” keys to select the correct channel..
B0 0 1 : DP
Po s ( 1 2 , 1 )
An a l o g I n
A0 1 : 0
10 )Press the “OK” key with A01 channel is flashing and either a value or graph can be viewed
for incoming analog data. Press the “OK” key for value and return to the previous screen ,
otherwise, highlight graph using the “ and ” and similarly press the “OK” key to set the
graphical parameters.
B0 0 1 : DP
An a l o g I n
Va l u e
Gr a p h
11 ) The graph option allows graphical representation of data in the form of a horizontal
bargraph, therefore, three parameters need to be entered to define the limitations. The
Length (LEN) value of the bargraph can be entered using the “+ and -” keys. Use the “
and ” to hightlight the MAX and MIN options accordingly. The Maximum (MAX) and
Minimum (MIN) values can be entered using the “+ and -” keys. Refer to Table 6.16 for
range settings for each parameter.
B0 0 1 : DP
LEN= 1
MAX= 0
MI N= 0
12 )If a Function Block Value is required to be displayed press the “OK” when FB Value is
highlighted in step 5.
B0 0 1 : DP
FB S e l e c t
No t E x i s t
Va l i d FB
6 - 39
α2 Simple Application Controllers Function Blocks 6
13 )If a Time Switch is required to be displayed press the “OK” when TS Data is highlighted in
step 5.
B0 0 1 : DP
TS Se l e c t
T i me SWm
B0 0 1
14 )If Date is required to be displayed press the “OK” when Date is highlighted in step 5.
B0 0 1 : DP
Po s ( 1 2 , 1 )
Da t e
02 / 14 / 2002
15 )If a Time is required to be displayed press the “OK” when Time is highlighted in step 5.
B0 0 1 : DP
Po s ( 1 2 , 1 )
T i me
20 : 45
16 )Press the “ESC” key and return to the FBd for further programming.
6 - 40
α2 Simple Application Controllers Function Blocks 6
Set Priority - The Output turns ON when the Input Value is equal to or between the High and
Low Limits.
Reset Priority - The Output turns ON when the Input Value is outside the High and Low Limits.
1) ON in the zone
The value from the input pin is compared with the preset high and low
values and sets the output ON when the zonal compare condition is
satisfied.
Output
Otherwise the output is OFF.
6 - 41
α2 Simple Application Controllers Function Blocks 6
Setup of the Zone Compare Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : ZC
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” Key and enter the function block settings using the “ and ” keys.
B0 0 1 : ZC
CmpVa l L
L <= I <=H : S
0
4 ) Pressing the “OK” invokes the input data type menu..
B0 0 1 : ZC
D i r e c t Se t
An a l o g I n
FB Va l u e
5 ) Press the “OK” Key and a DirectSet value can be entered.
B0 0 1 : ZC
CmpVa l L
D i r e c t Se t
0
6 ) Press the “OK” Key and an Analog Input in can be entered.
B0 0 1 : ZC
CmpVa l L
An a l o g I n
A0 1 0
7 ) Press the “OK” key and data from another function block can be entered.
B0 0 1 : ZC
CmpVa l L
No t Ex i s t
Va l i d FB
8 ) Having set the L and H condition using the same procedure and specified the Set or Reset
while in zone compare area use the “ESC” key to return to the function block edit screen.
6 - 42
α2 Simple Application Controllers Function Blocks 6
When the High Limit value is less than the Low Limit value, the Output ON/OFF pattern is
reversed. When the Input Value is greater than or equal to the Low Limit Value, the Output
turns OFF. When the Input Value is equal to or less than the High Limit value, the Output
comes ON. The input pin must be ON for the Function Block to register a new value from a
Function Block or Analog Input. Therefore, the input pin must be ON for the status of the
Output to change. The input pin does not have to be ON for the Output to be ON.
6 - 43
α2 Simple Application Controllers Function Blocks 6
Limit (H)
Limit (L)
Output ON OFF
Limit (L)
Limit (H)
Output OFF ON
Output ON OFF *1
Note: *1For Analog or FB value inputs, the lower and upper limits are not equal.
6 - 44
α2 Simple Application Controllers Function Blocks 6
Setup of the Schmitt Trigger Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : ST
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” Key and enter the function block settings using the “ and ” keys.
B0 0 1 : ST
I n p u t Va l
L i mi t =L , H
0
4 ) Press the “OK” key with the InputVal highlighted and the user can enter a the appropriate
Input Val data from either a DirectSet, Analog In or other FB Values.
B0 0 1 : ST
D i r e c t Se t
An a l o g I n
FB Va l u e
5 ) The Low and High limit can be given Input Val data from either a DirectSet, Analog In or
other FB Values. Press the “ESC” key to return the edit screen for the function block and
the user can change the low or high limits either by DirectSet, Analog In or FB Value.
6 - 45
α2 Simple Application Controllers Function Blocks 6
000 2) The function block retains the previous value if there is no signal
I P O from the input pin and restarts with this value when the input is
given a signal again.
C
HM
3) The current time value is reset if the clear pin receives a signal.
6 - 46
α2 Simple Application Controllers Function Blocks 6
Input pin I
Suspend
Input pin C timekeeping
Output
Corresponds
Timekeeping with set time
Timekeeping
Suspending
timekeeping
Current value
Setup of the Hour Meter Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : HM
T i me u n i t
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” key to set the Time unit for the delayed output.
T i me u n i t
h h : mm
mm: s s
4 ) Press the “OK” key having selected the correct time unit and return to the function block
edit screen. Using the “ and ” keys highlight the Setup FB and press the “OK” key.
B0 0 1 : HM
Ho u r
Mi n u t e
5 ) Press the “OK” key with Hour highlighted and using the “ , , + and -” Keys enter the total
hour time for the specified block.
B0 0 1 : HM
Ho u r
T= 1h
t= 0h
6 ) Press the “OK” key with Minute highlighted and using the “ , , + and -” Keys enter the
total minute time for the specified block.
B0 0 1 : HM
Mi n u t e
T= 0m
t= 0m
6 - 47
α2 Simple Application Controllers Function Blocks 6
1) Speed and output values will not be cleared unless the clear pin
receives a signal to reset the counter.
Note: The Speed Detect function (SPD) block can use only 1 high speed frequency
(Max.1kHz) in any one program. Subsequent SPD function blocks can only use a
maximum of 20Hz for high speeding counting.
6 - 48
α2 Simple Application Controllers Function Blocks 6
9
8
5
5
4 4 4
3 3 3 3
Current value of 2 2 2 2 0
1 1 1 1 1
counter
Set cycle
9 8
Upper limit: 7
Lower limit: 4
Speed output 0 5 5 4 0
value
Output pin ON ON
9 8
6 7
6
5 5
4 4 4
3 3 3
Current value of 2 2 0 2
1 1 1 1
counter
Set cycle
Processing time
1 scan 9
time 6
Upper limit: 7
Lower limit: 4
0 0 0 0
Speed output
value
Output pin OFF ON OFF
6 - 49
α2 Simple Application Controllers Function Blocks 6
9
8
5
5
4 4 4
3 3 3 3
Current value of 2 2 2 2 0
1 1 1 1 1
counter
Set cycle
9 8
Lower limit: 7
Upper limit: 4
Speed output 0 5 5 4 0
value
Output pin ON
9 8
6 7
6
5 5
4 4 4
3 3 3
Current value of 2 2 0 2
1 1 1 1
counter
Set cycle
Processing time
1 scan 9
time 6
Lower limit: 7
Upper limit: 4
0 0 0 0
Speed output
value
Output pin ON ON
6 - 50
α2 Simple Application Controllers Function Blocks 6
9
8
5
5
4 4 4
3 3 3 3
Current value of 2 2 2 2 0
1 1 1 1 1
counter
Set cycle
9 8
Upper limit: 5
Lower limit: 5
Speed output 0 5 5 4 0
value
Output pin ON
9 8
6 7
6
5 5
4 4 4
3 3 3
Current value of 2 2 0 2
1 1 1 1
counter
Set cycle
Processing time
1 scan 9
time 6
Upper limit: 6
Lower limit: 6
0 0 0 0
Speed output
value
Output pin ON
6 - 51
α2 Simple Application Controllers Function Blocks 6
Setup of the Speed Detect Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block.
The function block edit screen is displayed as shown.
B0 0 1 : SPD
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” Key and enter the function block settings using the “ and ” keys.
B0 0 1 : SPD
Pe r i o d
Sp e e d ( L , H)
4 ) Press the “OK” key with Period highlighted and the user can enter a T and t value using
the “ , , + and -” keys.
B0 0 1 : SPD
Pe r i o d
T= 1 . 00s
t= 0 . 00s
5 ) Press the “OK” key to return to the function block settings screen. Highlight the
Speed(L,H) option using the “ and ” keys. The limits can be set by highlighting L or H
and pressing the “OK” key. A Directset value, Analog In or FB value can be entered.
B0 0 1 : SPD
D i r e c t Se t
An a l o g I n
FB Va l u e
6 ) Press the “ESC” key until the user returns to the function block diagram.
6 - 52
α2 Simple Application Controllers Function Blocks 6
2) The width of the pulse is dominated by the duty and value of the
period.
000
3) Duty (setting range:0-100%)
FB a) DirectSet (Constant value): setting range 0 to 100 with an initial
I P O value 0
b) Analog In (Analog Input) : setting range A01 to A08 with an
PWM initial input A01
c) FB Value: output value from a function block
1) The bit output pin is set on for the length of the duty specified.
Output
2) The following items are available for other function blocks:
a) Set Period
b) Current Period
Note:
The ON/OFF time cannot be less than one scan time for the controller; otherwise, the PWM
Function Block will not perform its assigned task for the time specified. Users can monitor the
scan time from the α 2 Series Controller. Scan time is dependent on the user-program;
therefore, caution is needed as and when time units are selected.
Current value
in cycle
Note:
10ms step for minimum resolution.
6 - 53
α2 Simple Application Controllers Function Blocks 6
Setup of the Pulse Width Modulation Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : PWM
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” Key and enter the function block settings using the “ and ” keys.
B0 0 1 : PWM
Pe r i o d
Du t y
4 ) Press the “OK” key with Period highlighted and the user can enter a T and t value using
the “ , , + and -” keys.
B0 0 1 : PWM
Pe r i o d
T= 1 . 0s
t= 0 . 0s
5 ) Press the “OK” key to return to the function block settings screen. Highlight the Duty option
using the “ and ” keys. The Duty can be entered by pressing the “OK” key. A Directset
value, Analog In or FB value can be entered.
B0 0 1 : PWM
D i r e c t Se t
An a l o g I n
FB Va l u e
Press the “ESC” key until the user returns to the function block diagram.
6 - 54
α2 Simple Application Controllers Function Blocks 6
Output 2) The following outputs are available for other function blocks:
a) MV (Manipulation Value)
b) ERROR CODE
EN
PID operation
AT
CLEAR
AT RUNNING
6 - 55
α2 Simple Application Controllers Function Blocks 6
EN
PID operation
AT
CLEAR
AT RUNNING
3) Error Occurance
Error occured
EN
MV
ERROR
6 - 56
α2 Simple Application Controllers Function Blocks 6
TS
Integration Value In = EVn
TI
Derivative Value Dn =
TD
(PV fn − 2 PV fn−1 + PV fn−2 + K D Dn−1 )
TS + K DTD
C o n t r o l Va l u e C h a n g e i n
Forward Operation ∆MVn = K P ((EVn − EVn −1 ) + I n + Dn )
C o n t r o l Va l u e C h a n g e i n
Reverse Operation ∆MVn = − K P ((EVn − EVn −1 ) + I n + Dn )
6 - 57
α2 Simple Application Controllers Function Blocks 6
6 - 58
α2 Simple Application Controllers Function Blocks 6
Note:
Other PID systems may calculate proportional control based on the magnitude of the current
deflection only.
Time
Integration Time, TI. A common problem with P-control is that it tends to stabilize the PV at a
value not equal to the SV (this is called an offset error). With PI-control, a temporal integration
factor is added to deal with this problem. The idea behind PI-control is to ramp up the effect of
P-control, if an offset error persists over time. The T I parameter can be set manually or
automatically with the Auto-tuning function. The default value for TI is 40 (4 seconds) but can
be set to any value within the range of 1 to 32767 (in 100ms units). When a small value for TI
is set, the PV will reach the SV within a relatively short amount of time with greater searching
(e.g. more overshoot and more undershoot) for the SV.
Note:
Setting zero for this variable disables the integration effect.
Time
6 - 59
α2 Simple Application Controllers Function Blocks 6
Derivative Time and Derivative Gain, T D and K D . D-control acts together with the
proportional part of PID-control. For changes in the PV, the Derivative component will
supplement the P-control depending on the rate of change of the PV. Derivative Control initially
outputs a large corrective action which dissipates rapidly over time. The outcome is that the PV
reaches the SV more quickly and does not fluctuate as much as with PI-control. There are two
ways to adjust the Derivative control of the PID Function Block, Derivative Time (TD) and
Derivative Gain (KD). TD can be set manually or automatically with the Auto-tuning function.
The default value for TD is 100 (1 second) but can be set to any value within the range of 1 to
32767 (in 10ms units). For small values of TD, D-control will have a small effect. For large
values, there will be a short stablization time with some searching (overshoot and undershoot)
for the SV. The second parameter, KD, cannot be set by the Auto-Tuning function and should
be adjusted manually. The default value for KD is 50% but can be set to any value within the
range of 0 to 100%. Increasing K D will make the D-control more responsive (shorter
stablizaton time) to sharp changes in PV.
PV
TD3 > TD2 > TD1
PI action (without derivative action)
Time
Sampling Time, TS. TS is the period of time between two measurements of the PV. Values for
TS range from 1 to 32,767 (in 10ms units). The default value for TS is 50 (500 ms).
Noise Filter, αf. The α f coefficient determines the level at which the PID Function Block
ignores noise from the input sensors on the input signal, PV. The coefficient can be adjusted to
a value ranging from 0 to 99%. Setting αf to 0% disables the filter and passes the raw PV (PVn
= PVnf) to the PID calculations. The default value for αf is 50%.
Auto-tuning Bias, AT Bias. This value is an offset applied to the SV during Auto-tuning. The
SV, plus the AT bias, is the threshold during Auto-tuning where the output is switched from on
to off. During the Auto-tuning calibrations, the MV will be turned OFF when the PV passes the
“SV plus AT bias” point and not the usual SV point (without AT bias). Refer to the Auto-tuning
section for more details. The allowable range for the AT bias is -32768 to 32767. The default
value for AT bias is 0.
Note:
In some cases, a physical limitation may make it undesirable for PV to exceed SV too greatly.
This feature is useful in those applications that require that the PV stay below (or above) the
actual SV. AT-Bias allows the user to offset the SV to a point where overshooting and
undershooting may occur without undesirable results.
Direction. The direction of the system refers to the response of the PV as the MV is applied. If
an MV is applied and the response of the PV is in the positive direction, the system is said to
be a “Reverse” type system. Whereas, if a the PV responds in the negative direction then the
system is a “Direct” type of system. The default setting for Direction is “Reverse.”
6 - 60
α2 Simple Application Controllers Function Blocks 6
Control Response. When changes in the SV are necessary, the user can select whether the
changes from the initial SV to the final SV should be immediate or gradual. There are three
options for speed at which SV changes: slow, normal and fast. With immediate, or fast,
response, the controller tends to overshoot its target. With Normal Response there is less
overshoot. And, finally, with Slow Response, there should be no overshoot at all.
Table 6.28: Coefficient Values for Different Response Times
Response α β
FAST 100% 100%
NORMAL 40% 135%
SLOW 0% 100%
Note:
In certain systems, changing this parameter will have no effect on the response behavior of the
controller.
PID Control after Auto-tuning. P, PI, PID. The controller can be setup to run in one of three
modes: P-control, PI-control or PID-control. The desired control type will only become effective
after auto-tuning has completed. The choice of control type should be made depending on the
application. For example, if P-control is a sufficient control method for the application, then the
more resource-intensive I- and D-control can be switched off to shorten the scan time.
Changing the MV Current Value. This function is only available in the VLS Programming
Language. Click “Change Current Value” to force the MV to another value. This function is
useful when manually fine tuning the PID parameters.
Lower Limit
6 - 61
α2 Simple Application Controllers Function Blocks 6
The output, or MV, is driven to its upper limit value until the PV reaches the SV (plus the AT
bias, if there is one), then it is driven to zero until the PV reaches the SV again. This is
repeated several times.
Figure 6.22e. Auto-tuning for Direction type, Reverse (default).
MV
ULV
PV
a
Set value + AT bias*
Set value
τ on
ULV
PV
Set value
a
Set value + AT bias*
τ on
The figures above indicate the behavior of the MV and the PV for a Reverse Direction example
system and a Direct Direction example system. During Auto-tuning, the MV is driven to its
upper limit value and to its lower limit value periodically and the response of the PV is
monitored. The controller then calculates the parameters, KP, TI, and TD, from the behavior of
the PV over time.
6 - 62
α2 Simple Application Controllers Function Blocks 6
The controller then records the way that the PV behaves and derives the correct parameter
using the Ziegler and Nichols formulas below. See Figures 6.22e and 6.22f for the definintions
of a, τ and τon.
Table 6.29: The Ziegler and Nichols formulas
P PI PID Unit
Proportional gain KP 1 0.9 1.2 1
a a a
Integration time TI τ on τ on 100 ms
0 33τ on (1 − ) 20τ on (1 − )
τ τ
Derivate time TD ⎛ τ ⎞ 10 ms
0 0 50τ on ⎜1 − on ⎟
⎝ τ ⎠
See figures 6.22e and 6.22f for the definitions of a, τ and τon.
Consequently, if the system is moderately linear, the Auto-tuned parameters will be sufficient
to control the PV if the SV is changed. Auto-tuning will not need to be performed again.
The following parameters may also be set before Auto-tuning, but they do not influence the
process:
• Derivative gain
• Control Response type (fast, normal, slow)
6 - 63
α2 Simple Application Controllers Function Blocks 6
*1. This is the maximum change in PV when the input filter is 0%. In the case of a higher input
filter, the maximum change in PV can be higher.
*2. Bit 5 of the error code is set when the calculated PID parameters are out of range. Bit 5 is
not set when AT is stopped by the user.
Setup of the PID Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : P I D
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” button to setup the parameters for the PID function block.
B0 0 1 : P I D
Se t V a l u e
P r o c e s s Va l
Samp l e T i me
6 - 64
α2 Simple Application Controllers Function Blocks 6
4 ) Highlight SetValue and select it using the “OK” button. Choose from DirectSet, Analog In,
or FB Value for the Set Value of the PID function block.
B0 0 1 : P I D
D i r e c t Se t
An a l o g I n
FB Va l u e
5 ) After selecting the appropriate constant, analog input or word output, press the “OK”
button to return to the function block settings menu.
B0 0 1 : P I D
Se t V a l u e
P r o c e s s Va l
Samp l e T i me
6 ) Highlight and select Process Val using the “OK” button. Choose from DirectSet, Analog In
or FB Value for the Process Value of the PID function block.
B0 0 1 : P I D
D i r e c t Se t
An a l o g I n
FB Va l u e
7 ) After selecting the appropriate constant, analog input or word output, press the “OK”
button to return to the function block settings menu.
B0 0 1 : P I D
Se t Va l u e
P r o c e s s Va l
S a mp l e T i me
8 ) Highlight Sample Time using the up and down keys.
B0 0 1 : P I D
Se t V a l u e
P r o c e s s Va l
Samp l e T i me
9 ) Press the “OK” button and enter a value using the “+” and “-” buttons.
B0 0 1 : P I D
Samp l e T i me
0 . 50 s
10 )Press the “OK” button to return to the function block settings menu. Highlight KP using the
“ and ” button.
B0 0 1 : P I D
P r o c e s s Va l
Samp l e T i me
Kp
11 ) Press the “OK” button and enter a KP value using the “+” and “-” buttons.
B0 0 1 : P I D
Kp
7.5 %
6 - 65
α2 Simple Application Controllers Function Blocks 6
12 )Press the “OK” button to return to the function block settings menu. Highlight Ti using the
“ and ” button.
B0 0 1 : P I D
Samp l e T i me
Kp
Ti
13 )Press the “OK” button and enter a Ti value using the “+” and “-” buttons.
B0 0 1 : P I D
Ti
4.0 s
14 )Press the “OK” button to return to the function block settings menu. Highlight Td using the
“ and ” button.
B0 0 1 : P I D
Kp
Ti
Td
15 )Press the “OK” button and enter a Td value using the “+” and “-” buttons.
B0 0 1 : P I D
Td
1 . 00 s
16 )Press the “OK” button to return to the function block settings menu. Highlight Kd using the
“ and ” button.
B0 0 1 : P I D
Ti
Td
Kd
17 )Press the “OK” button and enter a Kd value using the “+” and “-” buttons.
B0 0 1 : P I D
Kd
50 %
18 )Press the “OK” button to return to the function block settings menu. Highlight NoiseFilter
using the “ and ” button.
B0 0 1 : P I D
Td
Kd
No i s eF i l t e r
19 )Press the “OK” button and enter a NoiseFilter value using the “+” and “-” buttons.
B0 0 1 : P I D
No i s eF i l t e r
50 %
6 - 66
α2 Simple Application Controllers Function Blocks 6
20 )Press the “OK” button to return to the function block settings menu. Highlight Upper Limit
using the “ and ” button.
B0 0 1 : P I D
Kd
No i s eF i l t e r
Up p e r L i mi t
21 )Press the “OK” button and enter an Upper Limit value using the “+” and “-” buttons.
B0 0 1 : P I D
Up p e r L i mi t
4000
22 )Press the “OK” button to return to the function block settings menu. Highlight Lower Limit
using the “ and ” button.
B0 0 1 : P I D
No i s eF i l t e r
Up p e r L i mi t
L owe r L i mi t
23 )Press the “OK” button and enter a Lower Limit value using the “+” and “-” buttons.
B0 0 1 : P I D
L owe r L i mi t
0
24 )Press the “OK” button to return to the function block settings menu. Highlight AT Bias
using the “ and ” button.
B0 0 1 : P I D
Up p e r L i mi t
L owe r L i mi t
AT B i a s
25 )Press the “OK” button and enter an AT Bias value using the “+” and “-” buttons. Press the
“OK” button.
B0 0 1 : P I D
AT B i a s
0
B0 0 1 : P I D
L owe r L i m i t
AT B i a s
Re s p o n s e
27 )Press the “OK” button to select Response. Select the type of PID response that will be
used. The choices are Normal, Fast and Slow.
B0 0 1 : P I D
Re s p o n s e
No r ma l
Fa s t
6 - 67
α2 Simple Application Controllers Function Blocks 6
28 )Press the “OK” button to return to the function block settings menu. Highlight Direction to
choose the direction of operation for the PID function block.
B0 0 1 : P I D
AT B i a s
Re s p o n s e
D i r ec t i on
29 )Press the “OK” button to choose from Forward or Reverse operation.
B0 0 1 : P I D
D i r ec t i on
Re v e r s e
Fo r wa r d
30 )Highlight AT Result to select the type of control to be employed after auto-tuning finishes. .
B0 0 1 : P I D
Re s p o n s e
D i r ec t i on
AT Re s u l t
31 )Press the “OK” button and highlight the desired control type from the list: P-, PI- or PID-
control.
B0 0 1 : P I D
AT Re s u l t
P I D Co n t r o l
P I Co n t r o l
32 )Press “OK” to return to the function block settings menu.
B0 0 1 : P I D
Re s p o n s e
D i r ec t i on
AT Re s u l t
33 )Press “ESC” twice to return to the FBd.
6 - 68
α2 Simple Application Controllers Function Blocks 6
2) The clear selection resets the output regardless of the input given.
6 - 69
α2 Simple Application Controllers Function Blocks 6
The set value of A and B can be selected from the following three
sources:
FB 1) DirectSet (Constant value) : setting range -32768 to +32767 with
000 an initial value 0
I P O 2) Analog In (Analog Input) : setting range A01 to A08 with an
initial input A01
ADD 3) FB Value: output value from a function block
1) Word Output
When the input pin is ON, Y=A+B is executed and the word output
will be given the result. When the input pin is OFF the expression is
not executed and the Y value will retain the last result.
Setup of the Addition Function Block directly from the α2 Series Controller
1 ) Allocate the input pin to be used for the function block.
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : ADD
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” Key and enter the function block settings using the “ and ” keys. The
Addition operation Y=A+B must be specified.
B0 0 1 : ADD
Ou t p u t V a l
y =A+B
0
4 ) Using the “ and ” keys highlight Constant A and press the “OK” key to enter either a
Directset, Analog In or FB Value.
B0 0 1 : ADD
D i r e c t Se t
An a l o g I n
FB Va l u e
5 ) Repeat step 4 for Constant B and return to the FBd using the “ESC” key.
6 - 70
α2 Simple Application Controllers Function Blocks 6
The set value of A and B can be selected from the following three
sources:
FB 1) DirectSet (Constant value) : setting range -32768 to +32767 with
an initial value 0
000 2) Analog In (Analog Input) : setting range A01 to A08 with an
I P O initial input A01
3) FB Value: output value from a function block
SUB
1) Word Output
When the input pin is ON, Y=A-B is executed and the word output will
be given the result. When the input pin is OFF the expression is not
executed and the Y value will retain the last result.
Setup of the Subtraction Function Block directly from the α2 Series Controller
1 ) Allocate the input pin to be used for the function block.
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : SUB
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” Key and enter the function block settings using the “ and ” keys. The
Subtraction operation y=A-B must be specified.
B0 0 1 : SUB
Ou t p u t V a l
y =A - B
0
4 ) Using the “ and ” keys highlight Constant A and press the “OK” key to enter either a
Directset, Analog In or FB Value.
B0 0 1 : SUB
D i r e c t Se t
An a l o g I n
FB Va l u e
5 ) Repeat step 4 for Constant B and return to the FBd using the “ESC” key.
6 - 71
α2 Simple Application Controllers Function Blocks 6
The set value of A and B can be selected from the following three
sources:
FB 1) DirectSet (Constant value) : setting range -32768 to +32767 with
an initial value 0
000 2) Analog In (Analog Input) : setting range A01 to A08 with an
I P O initial input A01
3) FB Value: output value from a function block
MUL 1) Word Output
When the input pin is ON, Y=A∗B is executed and the word output
will be given the result. When the input pin is OFF the expression is
not executed and the Y value will retain the last result.
Setup of the Multiplication Function Block directly from the α2 Series Controller
1 ) Allocate the input pin to be used for the function block.
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : MUL
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” Key and enter the function block settings using the “ and ” keys. The
Multiplication operation y=A∗B must be specified.
B0 0 1 : MUL
Ou t p u t V a l
y =A∗ B
0
4 ) Using the “ and ” keys highlight Constant A and press the “OK” key to enter either a
Directset, Analog In or FB Value.
B0 0 1 : MUL
D i r e c t Se t
An a l o g I n
FB Va l u e
5 ) Repeat step 4 for Constant B and return to the FBd using the “ESC” key.
6 - 72
α2 Simple Application Controllers Function Blocks 6
The set value of A and B can be selected from the following three
sources:
FB 1) DirectSet (Constant value) : setting range -32768 to +32767 with
an initial value 0
000 2) Analog In (Analog Input) : setting range A01 to A08 with an
initial input A01
I P O 3) FB Value: output value from a function block
DI V 1) Word Output
When the input pin is ON, Q=A/B, R=A%B and the word output will be
given the result. When the input pin is OFF the expression is not
executed and the Q and R values will retain the last result.
Output
2) Bit Output
- Input value (B) = 0: Output pin is turned ON and the quotient Q and
R will reset to 0.
- Quotient (Q) > 32767: Output pin is turned ON and the quotient Q
will be set to 32767.
Setup of the Division Function Block directly from the α2 Series Controller
1 ) Allocate the input pin to be used for the function block.
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : D I V
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” Key and enter the function block settings using the “ and ” keys. The
Division operation Q=A/B must be specified.
B0 0 1 : D I V
Qu o t i e n t
q =A / B , r =A%B
0
4 ) Using the “ and ” keys highlight Constant A and press the “OK” key to enter either a
Directset, Analog In or FB Value.
B0 0 1 : D I V
Di r ec t se t
An a l o g I n
FB Va l u e
5 ) Repeat step 4 for Constant B and return to the FBd using the “ESC” key.
6 - 73
α2 Simple Application Controllers Function Blocks 6
Term Description
Y Operation result
A, B, C and D Input value
+ Calculation sign for addition
- Calculation sign for subtraction
∗ Calculation sign for multiplication
/ Calculation sign to request the Quotient
% Calculation sign to request the reminder
6 - 74
α2 Simple Application Controllers Function Blocks 6
Setup of the Calculation Function Block directly from the α2 Series Controller
1 ) Allocate the input pin to be used for the function block.
2 ) Press the “OK” key with the cursor in the function block.
The function block edit screen is displayed as shown.
B0 0 1 : CA L
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” Key and enter the function block settings using the “ and ” keys. The
Calculate operation [y= ] must be specified.
B0 0 1 : CA L 3
[ y= ]
4 ) While the cursor is flashing, use the “ and ” keys to select the appropriate character or
constant for your intended calculation. The following items are offered: A, B, C, D, +, -, *, /,
%, ( or )
B0 0 1 : CA L 3
[ y =A ]
Co n s t a n t A
0
5 ) DirectSet values, Analog In or FB Value can all be entered for each constant.
B0 0 1 : CA L
D i r e c t Se t
An a l o g I n
FB Va l u e
6 ) Return to the FBd using the “ESC” key.
6 - 75
α2 Simple Application Controllers Function Blocks 6
3) The output will go OFF if the Reset (R) pin is turned ON.
Output
4) If both the Set and Reset signals are turned ON simultaneously,
the Set operation will take precedence over the Reset operation.
The Set operation has high priority (i.e. Set > Reset > Shift).
Note: The output will not be affected if a change in the input pin status
took place between two rising edges. See the timing diagram below.
1 ) Shift Operation Timing Diagram
Power supply
(Run mode/ ON (Run mode)
Stop mode) OFF (Stop mode)
ON ON ON
Input pin
Shift pin
ON
Output pin ON ON ON
Set pin
ON
Reset pin
ON
6 - 76
α2 Simple Application Controllers Function Blocks 6
SFT O03
O01
O02
O03
SFT O03
O01 ON
O02 ON
O03 ON
6 - 77
α2 Simple Application Controllers Function Blocks 6
SMS 5) If the message was not sent after the third retry, the output status
will switch to ON and an error message will be generated through
the word pin of the function block.
Output 2) If more than one SMS function block exists in the program, an
FIFO (First In First Out) sequence is performed.
Note:
Transmission of UCS2 encoded short messages to an email account is not necessarily
supported for a SMS Gateway. In the event no support by the SMS Gateway, UCS2 encoded
short messages cannot be sent to an email account and a fax machine.
Please contact the used GSM network provider.
6 - 78
α2 Simple Application Controllers Function Blocks 6
Input pin
* * *
SMS Message SMS SMS
Message Message
Output pin
1 scan time
*Communication failure will tell the GSM/SMS FB to retry three times in two minutes.
ZC O03
4≤Current status≤7
(Bit 2=ON)
ZC O04
1
8≤Current status≤15 2
OR O05
(Bit 3=ON) 3
CP O06
Current status≥16
(Bit 4 = ON)
The GSM Function block will send the SMS packet when the input pin is activated. To input or
edit the GSM/SMS parameters, double click on the GSM/SMS icon to open the Short Message
Service dialog box in AL-PCS/WIN-E. When two or more Function Blocks are trying to send a
message at the same time, the one to connect first will send its SMS message or attempt to
send its message three times. The other GSM/SMS FB(s) will be placed in “Wait” status. All
the FBs will send their messages in turn.
6 - 79
α2 Simple Application Controllers Function Blocks 6
*1 The most common “Wait” status conditions are when 1) another GSM FB is transmitting a
message, 2) the GSM modem has not been initialized, or 3) Remote Access by the VLS
software is taking place. After the Output is turned OFF, the Word output status will also be
reset to 0.
Note: The Word Value will be displayed in hexadecimal format but the Table is given in
binary form. If b2 is On, for example, the Output Word will display a value of 00x4
(hex). It is possible that more than one bit will be ON simultaneously.
6 - 80
α2 Simple Application Controllers Function Blocks 6
6.30.6 Setting
This box will open the SMS Setting Dialog box. The information for the destination locations is
entered in the SMS Setting dialog box but the final destination is chosen in the Destination
area described below.
6.30.7 Destination
The Destination telephone numbers and e-mail Gateway parameters are shown. Choose the
desired destination phone number or Gateway setting for the specific GSM/SMS Function
Block. The choice of a mobile phone number will complete the selection process. If the
Gateway setting is chosen, the destination e-mail address must be entered in the “E-mail” box.
Every GSM/SMS FB can have a different e-mail address. Press the “OK” button to accept the
settings.
6 - 81
α2 Simple Application Controllers Function Blocks 6
6.30.11 Destination
Click the Mobile Phone option to input data for a mobile phone. Use the “Name #” as an
optional memo area. Enter the Destination phone number in the “Phone Number #” box.
Please verify with the Service Provider whether the International code is needed at the
beginning of the phone number. Click the Gateway option to input data in order to send an e-
mail. Use the “Name #” as an optional memo area. Enter the e-mail access code from the
Service Provider in the “Phone Number #” box.
These destination numbers will be valid for all SMS function blocks. E-mails can be
sent to as many addresses as the α2 memory allows. SMS messages can be sent to a
maximum of three telephone numbers.
6 - 82
α2 Simple Application Controllers Function Blocks 6
The CME and CMS Error boxes give information to the functioning of Mobile Equipment (ME),
please refer to the GSM modem manual for more details.
To begin the process from the Top Menu, scroll down to “Others/Serial
GSM
Com/GSM” and view the options shown at right. ComFo r ma t
GSM I n i t
GSM Remo t e
P I N Co d e
Se t SMS
GSM S t a t u s
ComFormat (Communication Format)
ComFo r ma t
Upon entering the GSM option, the ComFormat dialog will be the first Da t a L e n g t h
option. The ComFormat allows the user to set the communication Pa r i t y
settings for Data Length, Parity, Stop Bit, and Baudrate. S t op b i t
Ba u d r a t e
Scroll to the setting to be adjusted. De f a u l t
6 - 83
α2 Simple Application Controllers Function Blocks 6
Data Length
Da t a L e n g t h
Select a Data length of 7 or 8 bits.
8 bi ts
7 bi ts
Parity Pa r i t y
Select from three options for Parity - None, Odd or Even. No n e
Od d
Ev e n
Stop Bits S t op b i t
Choose the number of stop bits - 1 bit or 2 bits. 1b i t
2b i t s
Baud Rate
Ba u d r a t e
Select the baud rate - 9600 or 19200 bps. 9600 bps
19200 bps
Default
The controller can be returned to the default communication settings -
DataLength = 8 bits; Parity = None; Stop Bits = 1; and Baud Rate = 9600 bps - by pressing the
“OK” when the pointer is on the Default option.
Command Setting
GSM I n i t 0 1
Choose “Command” to enter the AT command. Details for the AT Comma n d
command should be included in the literature for the modem. Enter the [A ]
string by choosing the correct characters with the “ ” and “ ” arrows. < =>?@ABCDE
When a desired letter is shown onscreen, move to the right by pressing
the “ ” key. The character will remain in the previous cursor space. Do not press the “OK” key
until the command has been entered in its entirety. Move to the left for editing purposes with
the “ ” key.
Delay Time
GSM I n i t
The Delay Time Setting will delay the transmission of the initialization De l a y T i me
command while the modem completes its power up. Use the “+” key to 0s
increment the value and the “-” to decrement the value within the range
of 0 - 10 seconds. Enter the value by pressing the “OK” key.
6 - 84
α2 Simple Application Controllers Function Blocks 6
Three destination mobile telephone numbers can be entered, one in each DA address.
Alternately, two mobile phone numbers and one e-mail gateway access code can be entered.
Only one e-mail access code needs to be entered and then multiple e-mail addresses can be
input, one each per GSM/SMS Function Block.
6 - 85
α2 Simple Application Controllers Function Blocks 6
Validity Period
Se t SMS
The Validity Period is a request to the SMS Service Provider to keep VP
the message on their Server for a length of time. Each Service 24 . 0h r s
Provider may have their own policies on the allowable time messages
can be kept. Please check with your local Service Provider to obtain
these details. Use the “+” and “-” keys to change the value within the range of 5 minutes to 63
weeks.
GSM S t a t u s
Check the Status of the GSM modem settings and SMS message St a t us
transmissions through the table below. 0 0 0 0H
Note: *1This bit is not linked to the Remote Access Setting which only enables remote
access. This bit checks if Remote Access is currently in progress.
6 - 86
α2 Simple Application Controllers Function Blocks 6
CME Error
GSM S t a t u s
This CME Error status gives information to the functioning of Mobile CME E r r o r
Equipment (ME), please refer to the GSM modem manual for more -1
details.
Table 6.42: Mobile Equipment Error Codes
Value Description Value Description
-1 No Error 17 SIM PIN2 Required
0 Phone Failure 18 SIM PUK2 Required
1 No Connection to Phone 20 Memory Full
2 Phone-Adaptor Link Reserved 21 Invalid Index
3 Operation Not Allowed 22 Not Found
4 Operation Not Supported 23 Memory Full
5 PH-SIM PIN Required 24 Text String Too Long
10 SIM Failure 25 Invalid Characters in Text String
11 SIM PIN Required 26 Dial String Too Long
12 SIM PUK Required 27 Invalid Characters in Dial String
13 SIM Failure 30 No Network Service
14 SIM Busy 31 Network Timeout
15 SIM Wrong 100 Unknown
16 Incorrect Password ...256 All other values below 256 are reserved.
CMS Error
GSM S t a t u s
This value gives error information relevant to the Mobile Equipment CMS E r r o r
(ME) or Network, please refer to the GSM modem manual for more -1
details.
6 - 87
α2 Simple Application Controllers Function Blocks 6
6 - 88
α2 Simple Application Controllers Function Blocks 6
4) Password
Setup authentication password (4 digit code). The password is
common for all SMR FB and stored in Programm Parameter area.
5) Acknowledge
If this parameter is set and the FB output was manipulated by SM, a
acknowledge message is send back to the sender.
6) Retention
If this flag is set, the SMR FB keeps it's output states at the time of
controller power down.
6 - 89
α2 Simple Application Controllers Function Blocks 6
1) Bit output.
a) The output is set ON, when the switch ON command is found
000 in the received short message.
E P O b) The output is set OFF, when the switch OFF command is found
in the short message.
R
SMR Output c) When R ON, the bit output is reset (OFF). R takes priority over E.
When E is OFF the bit output value is hold.
2) Word output.
a) Word output for transferred values. The output is set to the
transmitted value, when the set word output command is found
and the value after “=” is valid.
b) When R is ON, the word output is set to zero.
When E is OFF, the word output is hold. R takes priority over E.
The asterix character '*' can be used to terminate phone number or can be stand-alone.
It takes place for any combination of numbers. Using the '*', one SMR FB can switch for a
group of phone numbers.
6 - 90
α2 Simple Application Controllers Function Blocks 6
A system for plant irrigation can be switched ON and OFF by short message (B10). The start
of irrigation can be delayed. The delay time (in minutes) is transferred by short message. Also
the duration of irrigation can be set by short message.
1) Password
A 4 digit numerical code can be set as an additional security level. This code must be located
from the first character of the short message, followed by the command delimiter '.'. The code
is set in the program parameter, thus valid for all SMR FB in a user program. Setting of a
password is optional.
3) Command Text
Because the command text can be freely choosed by the customer it is possible to use
irregular command words that are only known by one person (like a computer password).
6 - 91
α2 Simple Application Controllers Function Blocks 6
6.31.2 SM Commands
The commands included in a short message can be either for switching the bit output of a FB
or setting the value output.
In the transmitted SM the cmd3 must be followed by the equal character ('=') and a value, e.g.
cmd3=100.
The value can be positive and negative ('-') and must be in the range -32768...32767. Space
characters or the delimiter character can follow the value.
In case the '=' character is not followed by the '-' or the '+' character or a number, the command
is invalid. Multi commands can be transmitted in one short message, but not more than 10. All
commands have to be separated by the delimiter '.' (dot). Blank characters directly before and
after the delimiter are disregarded. A terminating delimiter character is not needed.
In case a short message contains more than one command for one FB, e.g. switch bit output
ON and switch bit output OFF, the first command in the short message becomes active. In
case of setting the same command text for bit output ON and bit output OFF command and
including this command in a short message, the bit output is switched ON.
The following characters can be used to build a command.
Table 6.47.1: Command Characters (Former than Ver. 3.00)
Group Code Character
<space> ! “ # $ % & ' ( ) * + , - / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @
GSM 7 bit default A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _
1 alphabet plus extension
table abcdefghijklmnopqrstuvwxyz{|}
ÄÅÆÇÑÖÜàäåæèéìñòöùü
2 Unicode 16bit `áâçêëíîïóôúû
6 - 92
α2 Simple Application Controllers Function Blocks 6
Example of received SM
This SM contains
-the password 1443
-the command "Heater ON" (FB bit output ON or OFF, depending on FB setup)
-the command "Light on" (FB bit output ON of OFF, depending on FB setup)
-the command "switch xmastree" (FB bit output ON of OFF, depending on FB setup)
-the command "water=1233", which setts the word output of a SMR FB to the value 1233
-the command "CntDown=-23", which sets the word output of a SMR FB to the value -23
Acknowledge messages
α2 in Run Mode, Password Protection Set, Password invalid or not "No access"
Set
For sending of report short messages, the Short Message Service Center (SMSC) must be
setup by using the GSM SMS FB.
6 - 93
α2 Simple Application Controllers Function Blocks 6
6 - 94
α2 Simple Application Controllers Function Blocks 6
2) Phone Number
Setup short message senders phone number.
000 By setting the phone number in FB parameter, only the SME with the
FB
setup phone number can manipulate a SMR FB.
E P O
Up to 28 characters,including “+ , - * 0 1 2 3 4 5 6 7 8 9 “.
R
CD
3) Number of RING
Setup number of RING before call detection(Program Parameter,
common for all CD FBs)
Range:1 to 20
R Reset pin for the function block
The output is set ON, when the caller's number is equal to the stored
phone number and E is ON.
Output
The output state is hold, when E is OFF, and it is reset (set OFF),
when R input is ON.
6 - 95
α2 Simple Application Controllers Function Blocks 6
The phone number detection is inactive for 15 seconds after the last RING. A new incoming
call within this guard time has no effect.
6 - 96
α2 Simple Application Controllers Function Blocks 6
3) The clear signal input reset the output, random one shot value and
000 current time.
I P O
C 4) If the Upper threshold is equal to or larger than the lower threshold,
ROS FB the random one shot time is set in the range lower threshold to
upper threshold.
5) If the Upper threshold is less then than the lower threshold, the
random one shot time is set in the range 0 to upper threshold or
lower threshold to 32767.
Note:
The set time cannot be less than one scan time for the controller; otherwise, the Random One
Shot Function Block will not perform its assigned task for the time specified. Users can monitor
the scan time from the α2 Series Controller. Scan time is dependent on the user-program;
therefore, caution is needed as and when time units are selected.
Setup of the Random One Shot Function Block directly from the α2 Series Controller
1 ) Allocate the input pin to be used for the function block.
2 ) Press the “OK” key with the cursor in the function block.
The function block edit screen is displayed as shown.
B0 0 1 : ROS
T i me u n i t
Se t u p FB
Ch a n g e No
De l e t e FB
6 - 97
α2 Simple Application Controllers Function Blocks 6
3 ) Press the “OK” key to set the Time unit for the random delayed output.
Choose either a 10ms, 100ms or 1s time interval using the “ and ” keys to highlight the
option and press the “OK” key when ready.
T i me u n i t
1 0 ms
1 0 0 ms
1 s
4 ) Return to the function block edit screen. Using the “ and ” keys highlight the Setup FB
and press the “OK” key.
B0 0 1 : ROS
Ra n d omV a l
L i mi t = L , H
5 ) A RandomVal in conjunction with the specified time units allocated earlier can be entered
from pressing the “OK” key having highlighted the RandomVal option using the “ and ”
keys. Press the “ ” key hence highlighting the 0s time value and use the “+ or -” keys to
enter a time value. Press the “OK” key to accept and return to the function block setting
screen.
B0 0 1 : ROS
Ra n d omV a l
0 . 0s
t= 0 . 0s
6 ) Highlight the Limit:L,H option and press the “OK” key. A high and low limit can be set for
the Random One Shot function block. Using the “ , , + and -” keys enter values for the
high and low limits in accordance with the time intervals specified earlier.
B0 0 1 : ROS
L i mi t : L , H
L= 0 . 1s
H= 0 . 1s
7 ) Press the “OK” key to accept the High and Low limit subsequently. Use the “ESC” key to
return to the FBd.
6 - 98
α2 Simple Application Controllers Function Blocks 6
5) When the Clear signal is set ON, the current Delay Time, current
One Shot Time will be cleared. The Output will reset OFF.
The following items are available for another function block:
1) Word Output
a) Delay
Output b) Current Delay
c) One Shot
d) Current One Shot
Note:
The set time cannot be less than one scan time for the controller; otherwise, the
Delayed One Shot Function Block will not perform its assigned task for the time
specified. Users can monitor the scan time from the α2 Series Controller. Scan time is
dependent on the user-program; therefore, caution is needed as and when time units
are selected.
Delayed One-shot Reset delayed timer Delayed less than set time
Time Time (shorter than set time) Time of One-shot time
6 - 99
α2 Simple Application Controllers Function Blocks 6
I02
• Delay Start: ON to OFF (Off to On)*
• Delay Time: 1s
• One-Shot Time: 1s
Setup of the Delayed One Shot Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : DOS
T i me u n i t
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” key to set the Time unit for the random delayed output. Choose either a
10ms, 100ms or 1s time interval using the “ and ” keys to highlight the option and press
the “OK” key when ready.
T i me u n i t
1 0 ms
1 0 0 ms
1 s
6 - 100
α2 Simple Application Controllers Function Blocks 6
4 ) Return to the function block edit screen. Using the “Up and Down” keys to highlight the
Setup FB and press the “OK” key.
B0 0 1 : DOS
De l a y T i me
On eSh o t
Co n d i t i o n
5 ) Highlight DelayTime from the list of options and press the “OK” key. The Delay Time can
be entered using the “ , , + and -” keys.
B0 0 1 : DOS
De l a y t i me
T= 0 . 1s
t= 0 . 0s
6 ) Highlight OneShot from the list of options and press the “OK” key to enter times. The One
Shot Time can be entered using the “ , , + and -” keys.
B0 0 1 : DOS
On e s h o t
T= 0 . 1s
t= 0 . 1s
7 ) Highlight Condition from the list of options and press the “OK” key to enter either a
RiseEdge or a FallEdge for the Delayed One Shot Operation.
B0 0 1 : DOS
Co n d i t i o n
R i s eE d g e
Fa l l E d g e
8 ) Press the “OK” key to accept and use the “ESC” key to return to the FBd.
6 - 101
α2 Simple Application Controllers Function Blocks 6
Note: The delay time cannot be less than one scan time for the controller; otherwise,
the Delayed Alternate Function Block will not perform its assigned task for the time
specified. Users can monitor the scan time from the α2 Series Controller. Scan time is
dependent on the user-program; therefore, caution is needed as and when time units
are selected.
Clear pin
Reset
OFF ON OFF Output pin
Output pin
DL AL O02
CL CL
I02
• ON Delay Time:
1s (10 × 100ms)
• OFF Delay Time:
0s (0 × 100ms)
6 - 102
α2 Simple Application Controllers Function Blocks 6
Setup of the Delayed Alternate Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : DA L
T i me u n i t
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) Press the “OK” key to set the Time unit for the delayed alternate output. Choose either a
10ms, 100ms or 1s time interval using the “ and ” keys to highlight the option and press
the “OK” key when ready.
T i me u n i t
1 0 ms
1 0 0 ms
1 s
4 ) Return to the function block edit screen. Using the “ and ” keys highlight the Setup FB
and press the “OK” key.
B0 0 1 : DA L
De l a y T i me
T= 0 . 1s
t= 0 . 0s
5 ) Press the “OK” to accept subsequently use the “ESC” key to return to the FBd.
6 - 103
α2 Simple Application Controllers Function Blocks 6
OFF ON Remember
Reset pin Output Signal
status after a
Output pin OFF ON power cut
6 - 104
α2 Simple Application Controllers Function Blocks 6
Setup of the Retentive Set/Reset Function Block directly from the α2 Series Controller
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown.
B0 0 1 : RSR
Se t u p FB
Ch a n g e No
De l e t e FB
3 ) The function block operates on a Set or Reset priority. Select the priority using the “ and
” keys and subsequently press the “OK” key.
B0 0 1 : RSR
Pr i o r i t y
Se t
Re s e t
4 ) Press the “OK” key and use the “ESC” key to return to the FBd.
6 - 105
α2 Simple Application Controllers Function Blocks 6
6 - 106
α2 Simple Application Controllers Function Blocks 6
6 - 107
α2 Simple Application Controllers Function Blocks 6
2) Click the “Insert CDP” button to Insert CDP function block for the control user screen
function
6 - 108
α2 Simple Application Controllers Function Blocks 6
3) Choose the “CDP (Control Display Function)” icon to add a DP (Display function block) for
each user screen.
4) Click the “Add DP” button to add DP function block(s) for the CDP function block. It is
possible to add a maximum of 10 DPs into 1 CDP.
6 - 109
α2 Simple Application Controllers Function Blocks 6
5) Choose the “Display” icon for indication FB (Function Block) or Analog value, and click
“Connect” button.
When not displaying them, please go to step 7).
6) Click the “Connect” button to display the FB value or the Analog Input value
- Free: Displays the Text, Date or Time. (Default setting)
- FB Word Output: Displays FB value. Choose function blocks from list.
- Analog Input: Displays Analog Input value. Choose Analog Input port.
When completing connection, click the "OK" button.
6 - 110
α2 Simple Application Controllers Function Blocks 6
7) Double-click the “Display” icon or click the “Open” button to set parameters. Further
information about parameters of the Display function block can be found in the
programming manual and “Help” on the AL-PCS/WIN-E.
On completion of the parameter settings, click the “OK” button.
Choosing “Free” on step 6)
6 - 111
α2 Simple Application Controllers Function Blocks 6
6 - 112
α2 Simple Application Controllers Function Blocks 6
8) Double-click the “CDP” icon or click the “Open” button to set parameter.
Displayed screen
9) Select the signal for changing user screens from the pull-down menu options.
6 - 113
α2 Simple Application Controllers Function Blocks 6
10) Select the next displayed user screen from the pull-down menu options.
When completing the control key setting, click the "OK" button.
11) When completing the control key’s setting, click the “OK” button.
6 - 114
α2 Simple Application Controllers Let’s Make a Program 7
For the program below, none of the above options need be set. Use the ProgClear to erase the
current memory contents with “OK”. To confirm the memory erase, press “OK" again.
S B001
I01
C OS O01
One Shot
I02 1 B002
2 S B003
I03 3 OR R SR O02
4
Set/Reset
O03
The input pins are shown on the left side of the FB and the output pins are shown on the right
side of the blocks. Note that each input pin can receive only one signal but the output pins can
provide signals to multiple sources.
7-1
α2 Simple Application Controllers Let’s Make a Program 7
If during the course of the programming you wish to begin again, use the “ESC” key to enter
the Edit Menu. Use the Exit option to go back to the TopMenu. Erase the memory using
ProgClear and begin again.
7.3.1 Adding Function Blocks by the Left to Right method (Section 4.2.1)
The first block that is shown will be the Input Block I01 with the Input number 01 flashing.
Press the “+” or “-” keys to scroll through the available programming blocks including Outputs,
M bits, Keys, and the Inputs. Return to I01. Press the ( ) arrow key. The output pin should
now be flashing.
01
In
Press “+” to attach a function block to Input I01. The options available to connect to the Input
block will be shown on the right hand side of the screen. Use the ( ) and ( ) arrows to move
to the option to select, AddFB. Enter “OK”.
01
A d d FB
O0 1
Co n n e c t
The FB select menu containing all 35 Function Blocks (including logic blocks) will appear
(picture). Again, use the ( ) and ( ) arrows to scroll to the desired Function Block, in this
case the One Shot (OS) Function Block. Use the “OK” button to accept.
FB S e l e c t
Re t e n t A L
F l i cke r
On e S h o t
The OS block has two input pins, the Input Pin on top and the Clear Pin beneath. Use the ( )
and ( ) arrows to choose the desired pin, in this case the Input pin. Confirm using the “OK”
button.
01 001
P
In OS
Use the ( ) arrow twice to move right until the OS output pin is flashing (picture). Enter the “+”
key to add a block. There is no need to enter the AddFB mode because O01 will appear on
the list of blocks to add. Use the ( ) and ( ) arrows to scroll to O01, accept with the “OK” key,
and then confirm with the “OK” key.
001
P
OS
7-2
α2 Simple Application Controllers Let’s Make a Program 7
OS Ou t
Move to the right one space so that the output pin is flashing. Connect I02 to the OR block,
(the same procedure as connecting I01 to the One Shot Block). The input pins for the OR
Block are equivalent so that any input pin can be chosen. [The key sequence for the OR Block
addition is “OK”, scroll to AddFB, “OK”, scroll to OR, OK, OK].
Move right until the OR output pin is flashing. Connect Output O03 in the same manner that
O01 was added. [The key sequence will be “OK”, scroll to O03, OK, OK].
002 03
OR Ou t
With the OR output pin still flashing (see diagram at right), press the “+” key again. The output
pin of the OR block can be connected to another location.
Scroll to “B01OS” and press “OK”. The OR block and the OS block can now be connected
through the Clear pin (picture). Since the OS Input pin on top has already been filled, there
can be no further connection to that pin.
Co n n e c t
P
OR OS
Press “OK” to accept the connection to the “C”, or Clear pin. They are now connected together.
002 001
P
OR OS
7-3
α2 Simple Application Controllers Let’s Make a Program 7
SR
7.3.5 Connect the Function Blocks from Right to Left (Section 4.2.2)
Move to the left until one of the two input pins is flashing. The top pin is the Set pin which will
be connected to the OS block. The Reset pin on bottom will be connected to the OR block.
Move to the Set pin and press the “+” key; the available blocks to add will be shown on the left
of the screen. Scroll down through the choices until B01OS is shown (picture). Use the “OK”
to choose the block, then the “OK” key again to confirm the choice.
EO0 4 003
0 0 1OS S P
0 0 2OR
Co n n e c t
Use the ( ) arrow to move down to the Reset pin. Connect the OR block using the same
procedure. [“+”, scroll ( ) to B02OR, “OK”, “OK”]
Move to the SR output pin and connect Output O02 using the Left to Right method of
connecting blocks. [( ), ( ), “+”, scroll to O02, “OK”, “OK”].
Move back to the left one space. The following diagram should now be showing on the LCD.
003
0 0 1 P O0 2
002
SR
7-4
α2 Simple Application Controllers Let’s Make a Program 7
The OR Block, like all the Logic Blocks, does not have any parameters that can or need to be
set.
Proceed to the One Shot Function Block. Use either the Jump command, trace the path
through the Set pin, or simply press the “+” key to scroll through the Function Blocks. When
the One Shot Function Block number (01) is flashing, press the “OK” key once to enter the FB
Edit Menu.
B 0 0 1 : OS
T i me u n i t
Se t u p FB
Ch a n g e No
De l e t e FB
Select the Time unit option from the menu using the “OK” button. The One Shot Function Block
allows for three different time increment settings: 10ms, 100ms or 1s.
T i me u n i t
1 0 ms
1 0 0 ms
1 s
Select the 100ms time increment using the “OK” button. The controller will return to the FB Edit
Menu. Select the Setup FB option from the Edit Menu. There are two option screens to be set.
B 0 0 1 : OS
On e S h o t
Pr i o r i t y
Enter the OneShot option screen using the “OK” button. The One Shot screen has two timers
that can be set. The “T” timer is the Set Time for the One Shot block Output signal. The t timer
is the elapsed time or actual time the OneShot has been ON. If a value is input for t, the first
time the One Shot block is activated it will begin timing from the input value.
B 0 0 1 : OS
On e S h o t
T= 0 . 1s
t= 0 . 0s
7-5
α2 Simple Application Controllers Let’s Make a Program 7
Use the “+” button to enter a value of 20.0 seconds in the T timer. Move down to the t timer
and enter the value of 5.0 seconds. The “OK” button will accept the data for the entire screen.
If the “OK” button is pressed before all the data on the screen is input, re-enter the screen and
input the data. Data can be changed or edited in the same manner.
B 0 0 1 : OS
On e S h o t
T= 20 . 0s
t= 0 . 0s
Press the “OK” button to accept the values above. Move down to the Priority option and press
the “OK” button. The Priority can be set for either Time or Input.
B 0 0 1 : OS
Pr i o r i t y
T i me
I npu t
Move to the Time option and press the “OK” button. All the screen data has now been set.
Return to the FBD using the “ESC” button. See Chapter 6 for details on the One Shot FB.
7-6
α2 Simple Application Controllers Appendix 8
8. Appendix
8-1
α2 Simple Application Controllers Appendix 8
8-2
α2 Simple Application Controllers Appendix 8
Logic
Logic Block Memory Section
Block Description
Displayed Use Reference
State
8-3
α2 Simple Application Controllers Appendix 8
Function Blocks
Memory
FB Name FB Symbol Description of Function Block Section
Use
1 000
The Boolean Function Block uses Boolean
Boolean 2 P O algebra to control the ON/OFF state of an
3 *1 6.3
[BL] output. An operational expression consists
4 BL of either the AND, OR, XOR or NOT form.
000
The Alternate Function Block is used to
reverse the ON and OFF state of the output
Alternate I O as and when the input pin receives a signal.
C 13 Byte 6.6
[AL] The output will be set ON when the input
AL pin goes high and remain ON until the input
receives the second rising edge.
000 The Delay Function Block provides an ON
I P O delay timer and an OFF delay timer. Time
Delay intervals for either situation can be set. The 19 Byte 6.7
[DL] C
DL time unit can be set to 10ms, 100ms or 1s
increments.
The One Shot Function Block awaits a
000 signal supplied to the input pin thereafter
I P O setting the output according to the specified
One Shot
C time. The timing parameters control the 17 Byte 6.8
[OS] state of the output (depending on the
OS
priority setting). The time unit can be set to
10ms, 100ms or 1s increments.
000
I P O
The Flicker Function Block changes the ON
Flicker and OFF state of the output according to a
19 Byte 6.9
[FL] FL
preset flicker time. The time unit can be set
to 10ms, 100ms or 1s increments.
000
Time Switch P O The Time Switch Function Block uses a
predefined time schedule to control the ON *2 6.10
[TS]
TS and OFF status of the output.
8-4
α2 Simple Application Controllers Appendix 8
Memory
FB Name FB Symbol Description of Function Block Use Section
000
The Offset Gain Function Block is based
Offset I P
upon a linear function Y=A/B∗X+C to which
Gain 22Byte 6.15
the value obtained from an analog input
[OG] OG
(X:A01-A08) is set.
8-5
α2 Simple Application Controllers Appendix 8
Memory
FB Name FB Symbol Description of Function Block Use Section
000
Subtraction I P O The SUB Function Block is used to subtract
20 Byte 6.25
[SUB] two input values.
SUB
000
Multiplication I P O The MUL Function Block is used to multiply
20 Byte 6.26
[MUL] two input values.
MUL
000
Division I P O The DIV Function Block is used to divide
20 Byte 6.27
[DIV] two input values.
DI V
000
I P O The CAL Function Block is used to perform
Calculation
a calculation from the combination of *3 6.28
[CAL]
CA L different Arithmetic function blocks.
8-6
α2 Simple Application Controllers Appendix 8
Memory
FB Name FB Symbol Description of Function Block Use Section
8-7
α2 Simple Application Controllers Appendix 8
Memory
FB Name FB Symbol Description of Function Block Use Section
Note:
1 ) Number of bytes used = 19 + 1 ∗ (Characters in equation)
2 ) Number of bytes used = 8 + 4 ∗ (Number of time switches)
3 ) Number of bytes used = 30 + 1 ∗ (Characters in equation)
4 ) Number of bytes used is decided by the displayed item.
8-8
α2 Simple Application Controllers Appendix 8
TS
Integration Value In = EVn
TI
Derivative Value Dn =
TD
(PV fn − 2 PV fn−1 + PV fn−2 + K D Dn−1 )
TS + K DTD
8-9
α2 Simple Application Controllers Appendix 8
8 - 10
HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN