Device Programming PLC PHARAO
Device Programming PLC PHARAO
310807
GB
PHARAO – Device Programming Handbook
Foreword
• This manual contains text, diagrams and explanations which will guide the reader in the correct
installation, safe use and operation of the PHARAO controllers and should be read and under-
stood before attempting to install or use the unit.
• The connection and installation of a PHARAO controllers may be effected only by a qualified
electrician. National regulations and any valid safety conditions should be observed. Interfer-
ence with and changes to the product will result in cancellation of the guarantee.
• For inquiries concerning installation, application and operation please contact the Theben cus-
tomer service department (Tel.: +49 07474/692-177, Fax: +49 07474/692-207, e-mail: hot-
[email protected]) or the relevant foreign representative.
• This manual is subject to change without notice. GB
PHARAO – Device Programming Handbook
PHARAO Controller
GB
Device Programming Handbook: Ident. no.: 310 807
GB-i
PHARAO – Device Programming Handbook
Table of Contents
1. Introduction ...........................................................................................................1
GB-ii
PHARAO – Device Programming Handbook
4.2.2 To connect the blocks from the right (signal receiver) block
to left (signal provider) block. ...................................................................................... 15
4.3 Disconnect Two Blocks ...............................................................................................16
4.4 Methods to Create a Function Block ...........................................................................16
4.4.1 New FB ........................................................................................................................ 16
4.4.2 AddFB .......................................................................................................................... 16
4.5 Function Block Editing .................................................................................................17
4.5.1 Setup Function Block ................................................................................................... 17
4.5.2 Change No. (of a Function Block) ............................................................................... 17
4.5.3 Delete FB ..................................................................................................................... 17
GB
4.6 Movement between Function Blocks ..........................................................................18
4.6.1 Movement Between Unconnected Blocks ................................................................... 18
4.6.2 Movement Between Connected Blocks ....................................................................... 18
4.6.3 The Jump Command ................................................................................................... 18
4.7 Using Keys as Inputs ..................................................................................................18
4.8 Programming the System Bits M01 - M05 ..................................................................19
4.9 Function Block Description and Byte Consumption ....................................................19
4.10 The Monitor Mode .....................................................................................................20
4.10.1 Monitor/Update Function Block Values ..................................................................... 20
4.10.2 Forcing Outputs ON/OFF .......................................................................................... 20
4.10.3 Add/Delete Function Blocks in the Monitor Mode ...................................................... 20
GB-iii
PHARAO – Device Programming Handbook
GB-iv
PHARAO – Device Programming Handbook Introduction 1
1. Introduction
The programmable compact control devices of the PHARAO series (PHARAO controllers)
offer you a flexible monitoring system for your home, office or business premises. The
PHARAO-controllers can control the On/Off function of electrical devices or display information
on the front panel LCD. Some of the typical uses for the PHARAO controllers include control
of lighting, air conditioning, irrigation, doors, gates, simple security systems, greenhouses, and
air fans. The number of applications for the PHARAO controllers is almost unlimited. The built
in Real Time Clock lets the Alpha serve as a powerful time switch tool.
GB
PHARAO controllers can process both digital and analog electric input signals. The program-
ming is carried out by means of the control panel located at the front of the module or via the
programming software in Windows 95/98. In both cases, PHARAO avails of the most straight-
forward programming available, i.e. function block programming.
PHARAO controllers offer various input/output configurations and are suitable for use with all
AC and DC power supplies. The programming menu is available in five languages and pass-
word protection, EEPROM modules and a 20-day backup battery provide the programmer with
all necessary options for the safety of the program data.
This manual will describe the procedure by which the PHARAO-Steuerungen Series control-
lers can be programmed from the front panel, the functions of the keys, and the powerful func-
tion block capabilities.
GB-1
PHARAO – Device Programming Handbook Introduction 1
GB-2
PHARAO – Device Programming Handbook Function Block Programming 2
GB
S B01
I01 O01
1 B02 C S B03
I02 2
O02
3
ONE SHOT
I03 R
4
OR SET/RESET
O03
The base upon which the blocks are programmed is the Function Block Diagram (Fbd) base.
A complete function block diagram is shown above, where I = Input and O = Output. The user
can build a complex circuit in small easy steps by starting at the input and working forward in a
logical manner. The PHARAO controllers will gather information, process that information, and
provide control for the system.
GB-3
PHARAO – Device Programming Handbook Function Block Programming 2
2.1.1 Inputs
The PHARAO controller processes digital (ON/OFF) and analog (voltages within the range of
mV) data via the hardware ports. For technical data and circuit diagrams, please refer to the
Hardware Handbook of the PHARAO controller. Depending on the model, the device is
equipped with four, six or twelve hardware input ports respectively. The input ports are dis- GB
played and labeled as "I1", "I2" to "I12".
2.1.5 Outputs
The Outputs make or break the electrical circuits which control the electrical devices con-
nected to the PHARAO controller. High current switching relays or fast switching long life tran-
sistor outputs are available. The Outputs are referenced as O01 - O08.
GB-4
PHARAO – Device Programming Handbook Function Block Programming 2
GB-5
PHARAO – Device Programming Handbook Keys, Menus, and LCD Displays 3
GB
Note:
In the control program, the keys K1 to K8 can be
used for the purpose of additional input signals (e.g.
for manual control functions)
.
Table 3.1: Key Number and Basic Operation
Key Key
Name number Key Function
OK K01 Used to enter menu options, confirm data entry, and manually force inputs in the
monitor function.
Used to cancel an operation, move to a higher level screen, or to move to a new
ESC K02
menu.
Used to connect (or “add”) function blocks, increase Direct Set input values or
“+” K03 times, or move through programs or menus.
“–” K04 Used to disconnect function blocks, decrease Direct Set values or times, or move
through programs or menus.
( ) K05 Scroll up through menu options (menus, keys, FB, Inputs, Outputs, etc.)
( ) K06 Scroll down through menu options (menus, keys, FB, Inputs, Outputs, etc.)
( ) K07 Move to the right on the LCD display, FB program, or Jump command
( ) K08 Move to the left on the LCD display, FB program, or Jump command
GB-6
PHARAO – Device Programming Handbook Keys, Menus, and LCD Displays 3
Power ON
All key Others
Date Top Menu Soft Version
STOP/RUN (FB Edit)
Confirmation FB Program FB Parameter Version Display
Time,Day Run
display Setup FB OK:enter
Password
Input/ Language Password
Language Change.. FB..Change Set/Delete
Output German
English
French
FB Choice
(+)*
Delete
FB FB Delete Menu key
Menu Key
Setting
GB
Italian Connect Summer time
Spanish (New FB) * When wire is
SummerTim Cancel
ProgEdit (-)* flashing
Edit Menu Disconnect Manual On
ProgSize Date type
All Program UK, US, EU
delete ProgramSize
ProgClear Confirmation Jump display Modem Initial
See next page Modeminit
Code set
Timer New FB FB choice
ClockSet
setting Prog Transit
OK
Exit Add New FB Prog Tran** Verify
Others Cassette
ESC or OK/ESC
Mnemonic ** Only when the memory Cassette
Mnemonic Display cassette is installed prior ProtectSW
to power On.
GB-7
PHARAO – Device Programming Handbook Keys, Menus, and LCD Displays 3
GB-8
PHARAO – Device Programming Handbook Keys, Menus, and LCD Displays 3
Note:
• The electronics in the slot for connecting the programming cable or the external memory
module are not safely disconnected from the mains voltage electrically.
• Only specially trained persons familiar with the local and national standards may install
and remove the programming cable or the external memory module.
• Switch off the voltage before installing or removing the programming cable or the external
memory module.
• Do not touch the exposed contacts of the PHARAO controller. Check that no voltage is
present after switching off the voltage supply.
GB
GB-9
PHARAO – Device Programming Handbook Keys, Menus, and LCD Displays 3
GB-10
PHARAO – Device Programming Handbook Keys, Menus, and LCD Displays 3
3.8.3 SummerTime
In the menu "Summertime", you have the option to adjust the set- SummerTime
tings for the change from summertime to wintertime and vice versa.
Canc el
Description of the menu: Ma n u a l O n
• Cancel - Turns off the Summertime clock setting. Date Type
• Manual On - Moves the clock one hour ahead immediately. UK Type
• Date Type - Set the On date, Off date, and Time adjustment. US Type
• UK Type - Last Sunday of March to the First Sunday of Novem- EU Type
ber.
• US Type - First Sunday of April to the last Sunday of October.
• EU Type - Last Sunday of March to fourth Sunday of October.
3.8.4 Password
The password consists of four digits and will prohibit entry into the
ProgEdit and Monitor modes only. Run, Stop, ProgClear, etc. can Set up
still be accessed. When ProgEdit or Monitor is entered, a box will
Passwor d
pop up onscreen asking for the password. If the password is
entered correctly, the Fbd base can be accessed.
When Password is first entered, “Setup” will appear in the top left 0921
corner of the screen. Enter the desired password and accept with
OK. To cancel the password, enter Password and re-enter the
secret code. “Cancel” will appear in the top left corner. LCD Displays
There are a number of types of data and/or information that can be displayed.
GB-11
PHARAO – Device Programming Handbook Keys, Menus, and LCD Displays 3
3.9 LCD-Displays
In addition to the above described menus and functions, other data and information can be dis-
played on the LCD of the PHARAO controller.
GB-12
PHARAO – Device Programming Handbook Keys, Menus, and LCD Displays 3
Ou t
3.10.4 Connected Blocks
Blocks that are connected can be shown simultaneously onscreen. GB
The block providing the output signal will be shown on the left of
the screen. The input pin accepting the signal will flash. Any input 04 29
pin that is already connected will be shown as a solid triangle.
In CN
3.11 Function Block Diagrams
The programming technique for PHARAO controller begins by making a function block dia-
gram. This is a pictorial representation of the information flow. The Inputs appear on the left
side of the screen, the Function Blocks in the middle, and the Outputs on the Right hand side -
the same style as in an actual the program.
Ex - In order to keep a light on for 20 seconds after the light switch has been turned Off (maybe
there is a light switch at only one end of the hallway!), the following diagram has been drawn.
DEL AY
I 01 O0 1
(20sec)
1) Input I01 to receive the information that the light switch is Off.
2) A Delay Function Block to add the twenty second delay.
3) Output O01 to turn the light Off at the proper time.
Block diagrams are made only as an aid to inputting the program into the controller. The visual
reference can be useful when checking to see that your connections have been properly
constructed. The PHARAO Software can show all the Function Block connections on your
computer screen.
GB-13
PHARAO – Device Programming Handbook Direct Programming 4
4. Direct Programming
The PHARAO controller can be programmed using only the keys on the front panel. When the
function block diagram is complete, the program can be logically entered into the PHARAO
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.
GB
4.1 Block Availability
The number of System Inputs and Outputs is determined by the type of controller being pro-
grammed. The different PHARAO controller models offer you the following configurations for
input and output: 4 inputs and 2 outputs, 6 inputs and 4 outputs, or 12 inputs and 8 outputs.
Up to 64 Function Blocks can be used in a program or 1500 bytes of memory. The Function
Blocks must be added in the course of programming. The eight Keys and the five system M
bits are automatically available for every program.
Inputs, Outputs, System Memory Bits, and Keys do not count in the Function Block total.
GB-14
PHARAO – Device Programming Handbook Direct Programming 4
4.2.1 To connect the blocks from the left (signal provider) block to right (signal
receiver) block. GB
It is necessary to choose the block to provide the output (step 1), the block to accept the sig-
nal (step 2), and the pin with which to accept the signal (step 3).
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 04
block (AddFB, see section 4.4). Scroll to the preferred option
and select with the OK button. AddFB
O0 3
Con n ec 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 (“>”). Enter “+” to begin the connection pro-
05
cess.
I 04
CN
GB-15
PHARAO – Device Programming Handbook Direct Programming 4
Co n ne c t
4.4.1 New FB
7
To use the New FB option, proceed to the Edit Menu (Section 3.4.1)
with the ESC key. Scroll to the New FB option and press OK. Scroll
to the desired Function Block and press OK to create a New FB. The FB Sel ect
block will appear on the Function Block Diagram board. Fl i cker
On e Sh o t
4.4.2 AddFB Of f s e t
When connecting a Function Block, scroll to the AddFB prompt and
enter OK. This brings up the Function Block list. Scroll to the desired
Function Block and choose by pressing OK. The Function Block will be shown on the screen
with the connecting block.
GB-16
PHARAO – Device Programming Handbook Direct Programming 4
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 deleted with the block.
GB-17
PHARAO – Device Programming Handbook Direct Programming 4
GB-18
PHARAO – Device Programming Handbook Direct Programming 4
Key Description
M01 Always “ON”
M02 Always “OFF”
M03 Alternate - 0.5 seconds “ON”, 0.5 seconds “OFF”
M04 “ON” when Real Time Clock data error occurs GB
M05 “ON” when Summer time schedule is activated
SHMITT
19 Turn an Input On at the High Value and Off at the Low Value (or vice versa)
TRIGGER
Hour Meter 19 Records the accumulated time a signal has been ON
System Outputs 10 Controls External Devices through Relays and Transistors.
1*) No. of bytes used = 19 + 1 x (Characters in Equation)
2*) No. of bytes used = 8 + 4 x (Number)
3*) No. of bytes used = 13 + 1 x (Each character displayed)
GB-19
PHARAO – Device Programming Handbook Direct Programming 4
_M Ou t
GB-20
PHARAO – Device Programming Handbook The Logic Function Blocks 5
This chapter has been formulated to have a description of the Function Block, a diagram of
the Function Block as seen on the LCD Display, and a logic table to show how the Output is
controlled by the input signals. GB
An Input that is ON (or High) is shown as a “1” while an input that is OFF (or Low) is shown by
a “0”. Input numbers are nonspecific, so that a “1” appearing in the first column could actually
be placed in any Input 1, 2, 3, or 4. Unlike the Function Blocks in Chapter 6, the vertical place-
ment of the inputs in the Logic Block has no significance.
The status of unused inputs is described for each block. At least one input must be used to
active a block’s output. If no Input pin is used, the block output is OFF.
I I I I O AND
1 1 1 1 1
1 1 1 0 0
1 1 0 0 0
1 0 0 0 0
0 0 0 0 0
I I I I O
1 1 1 1 1 OR
1 1 1 0 1
1 1 0 0 1
1 0 0 0 1
0 0 0 0 0
GB-21
PHARAO – Device Programming Handbook The Logic Function Blocks 5
In Out
GB
1 0
0 1
In In Out
X OR
1 1 0
1 0 1
0 0 0
GB-22
PHARAO – Device Programming Handbook The Logic Function Blocks 5
GB-23
PHARAO – Device Programming Handbook Function Blocks 6
6. Function Blocks
Function Blocks are the heart of programming the PHARAO controller. 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 onscreen, and a description of the inputs, outputs, and available options.
GB
The following terms are used throughout this chapter and in the PHARAO controller.
DEFINITIONS
Abkürzung Beschreibung
T The Set Time value input by the user, range 0 - 3276.7 seconds.
The elapsed time since the function came ON, range 0 -
t
3276.7 seconds.
N The Count value set by the user, range 0 - 32767.
The actual count value, range 0 - 32767. This value can be set to a one
n
time offset value.
DirectSet Enter a value using the “+” and “-” keys.
Analog In An Analog input value from a System Input (A01, A02, A03, ... A08)
FB Value An analog value contained in a Function Block (T, t, N, n, Direct set, etc.).
Word Comparison A 16 bit output value from a Function Block
GB-24
PHARAO – Device Programming Handbook Function Blocks 6
If both options are chosen and the Input signal turns ON and OFF
faster than the pulse duration, one double length pulse signal will be PL
sent.
Options: Rising Edge (Input ON), Falling Edge (Input OFF), Both Edges
Input: I>(Input)
Output: ON/OFF
GB-25
PHARAO – Device Programming Handbook Function Blocks 6
The Clear Input will turn the Output OFF and cancel the current operation. The Clear pin over-
rides the Input pin if both signals are ON at the same time.
If the Set Time is 0.0 seconds, the block will function like the Pulse block.
The Reset Input returns the Output to the OFF condition and will override the Input pin.
GB-26
PHARAO – Device Programming Handbook Function Blocks 6
FL
Example: GB
When the alarm sounds, it is desired to have the light flash twelve times to alert an operator.
The flicker can be set for an the Output to come ON for one second, turn OFF for 0.5 sec-
onds, and to repeat the cycle 12 times.
GB-27
PHARAO – Device Programming Handbook Function Blocks 6
After choosing the type of time switch, a screen will appear with a
time switch number flashing in the top right corner. This screen is GB
used to select the time switch to edit by using the “+” or “-” keys. B 0 1 : TS #01
The only time switch available to begin is TS #01. Press OK to dis- Ed i t Dat a
play the option screen shown at right. Ne wDat a
De l Dat a
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.
Example:
The example at right shows a time switch that will turn OFF on July
14th, 1999 at 9:00 AM (Note - 9:00 PM is designated on the 24 hour B01: TS #02
clock as 21:00). The day of the week is automatically updated when We d
the date is changed. 1999/ 07/ 14
0 9 : 0 0 → Of f
Note:
The time switch can also be programmed to perform on a yearly
basis. Reduce the year to below 1998; the numbers signifying the year will display as **** and
the day of the week message will appear as “Yearly”. The operation will perform each year on
the specified date.
GB-28
PHARAO – Device Programming Handbook Function Blocks 6
The example screen shown at the right shows that the Output will
turn ON at the following times:
The first week of the month on Monday, Wednesday, and Saturday B01: TS #01
at 11:30 AM. 1 - 3 4 -
The third week of the month on Monday, Wednesday, and Saturday - M- W- - S
at 11:30 AM. 1 1 : 3 0 → On
The fourth week of the month on Monday, Wednesday, and Satur-
day at 11:30 AM.
GB-29
PHARAO – Device Programming Handbook Function Blocks 6
If both the Up and Down inputs pins receive a signal at the same time, there is no change in
the counter value.
GB-30
PHARAO – Device Programming Handbook Function Blocks 6
Choose values for A,B,C, Low and High with the Direct Set option only. The values for Direct-
Set range from -32768 to +32767.
GB-31
PHARAO – Device Programming Handbook Function Blocks 6
DP
6.13.1 Displaying Data Onscreen
Character strings (letters, numbers, symbols), Analog values, GB
Function Block values, the current time, and the current date can be shown on the screen. If
two Display blocks contain the same positioning data, the data from the Function Block with
the highest number will be displayed.
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, the 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.
To edit the time or date, press OK 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.
Options: Pos(#,#): X = #, Y = #
“No Data”: Strings, Analog, FB Value
Input: I> (Input)
Output: Data Onscreen
GB-32
PHARAO – Device Programming Handbook Function Blocks 6
Set Priority: The Output turns ON when the Input Value is equal to GB
or between the High and Low Limits.
Reset Priority: The Output turns ON when the Input Value is outside the High and Low Lim-
its.
Options: L, I, H, Set, Reset
Inputs: I>(Input)
Outputs: ON/OFF and Word Comparison
When the High Limit value is larger than the Low Limit value, the
output will turn ON when the High Limit value is reached or exceeded. The Output will turn Off
when the Input value is equal to or less than the Low Limit. (The Output does not turn OFF
when the Input Value falls below the High Limit).
Example:
An air conditioner is set to turn ON when the air temperature reaches 23 C and turn OFF when
the temperature reaches 18 C. The air conditioner is not constantly turning ON and OFF over
slight temperature fluctuations.
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.
Options: InputVal, LimitHigh, LimitLow
Input: I> (Input)
Output: ON/OFF
GB-33
PHARAO – Device Programming Handbook Function Blocks 6
The timing starts at the receipt of an Input signal and retains the
accumulated time through system shutdowns or power outages. HM
When the Set Time value is reached, the block Output will turn ON.
GB
The Hour Meter will continue recording time after the Output time is reached. A signal to the
Clear pin will return the current time value to zero.
GB-34
PHARAO – Device Programming Handbook Lets 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 B01
I01 O01
1 B02 C S B03
I02 2
O02
3
ONE SHOT
I03 R
4
OR SET/RESET
O03
The input pins are shown on the left side of the FB and Outputs while 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.
GB-35
PHARAO – Device Programming Handbook Lets 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 (you might have to press the key more than once). Use the Exit option to go back to
the Top Menu. Erase the memory with ProgClear and you can begin again.
Enter “+” to add 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 01
select, AddFB. Enter OK (Section 4.4.2). AddFB
O0 1
Con n ec 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 with the OK button. The blocks 01 01
have been connected!
In OS
Use the ( ) arrow twice to move right until the OS output pin is flash-
ing (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 01
to add. Use the ( ) and ( ) arrows to scroll to O01, choose with the
OK key, and then confirm with the OK key.
OS
GB-36
PHARAO – Device Programming Handbook Lets Make a Program 7
Move to the right one space so that the output pin is flashing. Con- Out
nect I02 to the OR block, (the same procedure as connecting I01 to
the One Shot Block). The input pins for the OR Block are equiva- GB
lent 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]. 02 03
I
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 OR Ou t
another location.
Scroll to “B01OS” and enter 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 con- Con n ec t
nection to that pin.
=C
OR OS
02 01
=C
OR OS
GB-37
PHARAO – Device Programming Handbook Lets Make a Program 7
SR
GB
7.3.5 Connect the Function Blocks from Right to Left
(Section 4.2.2 on page 15)
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. K08 03
Move to the Set pin and type “+”; the available blocks to add will be B 0 1 OS - S
shown on the left of the screen. Scroll down through the choices B 0 2 OR
until B01OS is shown (picture). Use the OK to choose the block, Co nne c t
then the OK key again to confirm the choice.
Use the ( ) arrow to move down to the Reset pin. Connect the OR block using the same pro-
cedure. [“+”, 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]. B 01 03
B 02 O0 2
Move back to the left one space. The following diagram should now
be showing on the LCD. SR
GB-38
PHARAO – Device Programming Handbook Lets Make a Program 7
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. Enter
the Setup FB option. (When the One Shot Function Block number (01) is flashing, press the
OK key twice).
There are two option screens to be set.
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 B 01: OS
ON. If a value is input for t, the first time the One Shot block is acti- OneShot
vated it will begin timing from the input value. T= 0.0 s
t= 0.0 s
Use the “+” button to raise the T timer to 20 seconds. Move down to
the t timer and raise the value to 5.0 seconds. The OK button will
accept the data for the entire screen. If the OK button is pressed B 01: OS
before all the data on the screen is input, re-enter the screen and OneShot
input the data. Data can be changed or edited in the same manner. T= 20.0 s
t= 5.0 s
Move down to the Priority screen. The Priority can be set for either
Time or Input. Move to the Time input and accept with the OK key.
All the screen data has been set. Return to the Fbd board by using B 0 1 : OS
the ESC key. Pr i or i t y
T i me
I nput
GB-39
PHARAO – Device Programming Handbook Lets Make a Program 7
GB
GB-40
PHARAO – Device Programming Handbook
Index
! Movement between . . . . . . . . . . . . . . . 18
**** . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
H
A Hour Meter . . . . . . . . . . . . . . . . . . . . . . . . . . 34
AddFB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
ALT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 I
AND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Image Table . . . . . . . . . . . . . . . . . . . . . . . . . 12
Information flow . . . . . . . . . . . . . . . . . . . . . . . 13 GB
B Input Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Base of function Block Diagram . . . . . . . . . . . 3 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Block Items . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Block number . . . . . . . . . . . . . . . . . . . . . . . . 12 J
Boolean . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Jump . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10, 18
Jump Command . . . . . . . . . . . . . . . . . . 18
C
Change Function Block Number . . . . . . . . . . 10 L
ClockSet . . . . . . . . . . . . . . . . . . . . . . . . . . . 8, 9 LANGUAGE . . . . . . . . . . . . . . . . . . . . . . . . 8, 9
COMPARE . . . . . . . . . . . . . . . . . . . . . . . . . . 31 LCD
Connected Blocks . . . . . . . . . . . . . . . . . . . . . 13 Display . . . . . . . . . . . . . . . . . . . . . . . . . 12
COUNTER . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Function . . . . . . . . . . . . . . . . . . . . . . . . 12
CPU Version . . . . . . . . . . . . . . . . . . . . . . . . . . 8 List
Input configuration . . . . . . . . . . . . . . . . . 8
D Output configuration . . . . . . . . . . . . . . . . 8
Date Type . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Logic
DELAY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Function Blocks . . . . . . . . . . . . . . . . . . 21
Delete Function Block . . . . . . . . . . . . . . . . . . 10
DISPLAY . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 M
Menu Key . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
E Menu options . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Edit Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Mnemonic . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
EU Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 ModemInit . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
F Monitor Mode . . . . . . . . . . . . . . . . . . . . . . . . 20
Fbd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
First Time Switch . . . . . . . . . . . . . . . . . . . . . 28 N
FLICKER . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 NAND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Front Panel Keys . . . . . . . . . . . . . . . . . . . . . . 4 New FB . . . . . . . . . . . . . . . . . . . . . . . . . . 10, 16
Function Block . . . . . . . . . . . . . . . . . . . . . . . . 3 NOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Function Block Diagram NOT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Base . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Function Block Diagrams . . . . . . . . . . . . . . . 13 O
Function Block Types . . . . . . . . . . . . . . . . . . . 4 OFFSET . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Function Blocks . . . . . . . . . . . . . . . . . . . . . . 12 ONE SHOT . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Availability . . . . . . . . . . . . . . . . . . . . . . 14 OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Change No. . . . . . . . . . . . . . . . . . . . . . 17 Output Blocks . . . . . . . . . . . . . . . . . . . . . . . . 13
Connecting . . . . . . . . . . . . . . . . . . . . . 15 Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Creating . . . . . . . . . . . . . . . . . . . . . . . . 16
Delete . . . . . . . . . . . . . . . . . . . . . . . . . 17 P
Disconnect . . . . . . . . . . . . . . . . . . . 14, 16 Password . . . . . . . . . . . . . . . . . . . . . . . . . 8, 11
Editing . . . . . . . . . . . . . . . . . . . . . . . . . 17 Programming
GB-41
PHARAO – Device Programming Handbook
Direct . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Delete . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Programming Methods . . . . . . . . . . . . . . . . . . 5 Edit . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
PULSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Enter . . . . . . . . . . . . . . . . . . . . . . . . . . 29
enter . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
R for the Date operation . . . . . . . . . . . . . 28
Real Time Clock . . . . . . . . . . . . . . . . . . . . 8, 11 for the Weekly operation . . . . . . . . . . . 29
RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 TimeSW . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
RUN Top Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
U GB
S UK Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Schmitt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 UP/DOWN COUNTER . . . . . . . . . . . . . . . . . 30
Schmitt Trigger . . . . . . . . . . . . . . . . . . . . . . . 33 US Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 X
Summertime . . . . . . . . . . . . . . . . . . . . . . . 8, 11 XOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
T Z
Time Switch ZONE COMPARE . . . . . . . . . . . . . . . . . . . . . 33
GB-42
PHARAO – Device Programming Handbook
Netherlands:
ITHO B.V., P.O.
Box 21, 3100 AA Shiedam
Tel.: 010/4 27 85 00, Fax: 010/4 36 33 72
Portugal:
DUARTE NEVES LTDA.
Apartado 4075, 1502 Lisboa
Tel.: 011/71 55 87, 011/7 15 57 10, Fax: 011/7 16 07 48
GB-43