Home
PoBlocks manual.docx
Contents
1. Description Inputs Outputs Properties Remarks 16 61 Description 40 SEL 8 bit integer SEL In 1 10 32 bit integer Input 1 10 Out 32 bit integer Value of the selected input Inputs Integer 2 to 10 Number of inputs None Extended Deadband Deadband adds symetrical deadband effect to the input signal Input 32 bit integer Input signal Deadband 32 bit integer Half deadband width Output 32 bit integer Signal with deadband None None Extended Limit Limit adds limit effect to the input signal Input 32 bit integer Input signal Out min 32 bit integer Minimum output signal value Out max 32 bit integer Maximum output signal value Output 32 bit integer Limited signal None None Extended Re scale Re scale rescales the input signal using the specified ranges Input 32 bit integer Input signal Output 32 bit integer Rescaled signal Input min Integer Minimum value of the input signal Input max Integer Maximum value of the input signal Output min Integer Output signal at the minimum input signal Output max Integer Output signal at the maximum input signal Limit output Logic Limit output to the specified range None Extended LCD UI LCD UI is used to configure user interface on alphanumeric LCD LCD UI supports multiple LCD layouts LCD contents which can be selected switched using the Layout input Each layout can contain different static text
2. Inverted clock input signal Address 8 bit integer VC device address Write 1 10 8 bit integer Bytes 1 10 to write to I2C device Outputs Busy Logic Busy signal Error Logic Error signal Properties Write count Integer 0 to 10 Number of bytes to write to 1 C device Remarks Communication is started on falling edge of the CLK input in order to support chaining multiple communication blocks using busy signals when one device completes the communication session its Busy signal goes from 1 to 0 which then triggers a communication session on another block in the chain 16 70 Misc Comment Description Comment is used to enter comments Inputs None Outputs None Properties Comment Comment text Remarks None 16 71 Misc To Description To is used to route signals across the schematic To connect To and From blocks identical Link ID must be specified Inputs gt gt gt Input port of the link Outputs None Properties Link ID Integer Link ID see block description Remarks Only one To block can be specified for one Link ID while multiple From blocks can 44 www poscope com PoBlocks user manual March 31 2014 16 72 Description Inputs Outputs Properties Remarks 16 73 Description Inputs Outputs Properties Remarks 16 74 Description Inputs Outputs Properties Remarks 16 75 Description Inputs Outputs Properties 45 be specified for the same Link ID Misc From F
3. PoBlocks User manual Version March 31 2014 D Algebra Logic Memory Trigger timing Extended Control Misc dd del Geht d V a PoExtBu PoExtBu IN OUT IN Encod Counter Sensor Jenpersture control Double dick on blocks with blue background toacess settings Smpiifedscheduled temperature control analogtemperature sensor on the input and PAM output for heating control Low temperatue Default value 0 Retain on reset True Hower over block to dispby current schedules High temperature Memory block with green background has Retain on reset option enabled The block v ll retain the set value even after reset or pover off RTC battery is required for Retain on reset option to work The amount of memory for retained values E limited switch to Memory info tab on the night to see how much memory is Eft T 19 Sum A UEUOL OL UILE IPER muted ENEG FO EK LO FPP CU fps LAS PO DOS POM KEV gvh 9 my PoBlocks user manual March 31 2014 Please read the following notes 1 All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice 2 PoLabs does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of PoLabs products or technical information described in this document No license express implied or o
4. P e EN m T NR P A ka Check and Transfer keng Check and Transfer IO Algebra Logic Memory Trigger timing IN OUT IN C Digital input 13 PoKeys56 series Www poscope com PoBlocks user manual March 31 2014 8 2 Removing blocks Select one block or use lasso selection to select multiple blocks then press Delete button 8 3 Moving blocks Use left mouse button to move the selected block 8 4 Copying blocks Select the blocks you want to copy by a lasso tool Press down the left mouse button on an empty part of the diagram then drag the mouse to select the blocks To copy the blocks press Ctrl C or go to Edit gt Duplicate selected 8 5 Connecting blocks Right port of one block can only be connected to left port of another block Left port of one block can however be connected to either right port of another block or to an existing connection Start connecting the blocks by clicking on one of the empty ports a port that can accept a connection will be highlighted in green You can then either drag the connection to another port and release the mouse button or release the button immediately and click again on the destination block s port f i SE Omni 7 eem Digital input Digital output Digital input Digital output Digital input Digital output 7 weg l l 1 Start at source port 2 Drag the connection 3 End at destination block In order to route the connection ar
5. left port constants can not be added to output right ports An default constant value O appears to edit the value just click on it and enter a new value To replace the constant with a connection simply drop the new connection to the port containing the constant value the constant value will be replaced by the newly established connection 8 7 Removing connections In order to remove an existing connection select the connection by clicking on it and press Delete button 8 8 Configuring blocks Basic blocks are configured using the properties panel on the right of the design area Select a block first and the properties panel will be automatically populated with options for that block Help for each property is included in the block help pop up window in the block library Advanced extended blocks those that have light blue background like Event drum Look up table Schedule LCD UI Custom PolL etc have a dedicated block properties editor This editor is accessed by double clicking on a block The description of each of these blocks can be found in the blocks section below 1 5 WWW poscope com PoBlocks user manual March 31 2014 9 Compile process After PoBlocks diagram is finished a built in compiler is used to translate it into PolL code that is then transferred and executed on a PoKeys device During compiling the diagram is checked for errors and if any are detected a pop up error list window will appear an
6. 8 bit integer Day of month Month 8 bit integer Month Year 16 bit integer Year Day of week 8 bit integer Day of week Properties None Remarks None 16 54 Extended Event drum Description Event drum resembles a mechanical contact drum and enables easy to use programming of various output sequences Double click on block to edit configuration Inputs Position 32 bit integer Drum position input in the range from 0 to number of entries 1 Outputs Out 1 8 Logic Drum output 1 8 signal Properties None Remarks Event drum editor see figure below is used to define outputs at each drum slot Left click to toggle output Green activated and use check boxes on the left to set the number of slots on the drum 3 7 www poscope com PoBlocks user manual March 31 2014 16 55 Extended Look up table byte Description Look up table byte is used to select data from the table Double click on block to edit configuration Inputs Position 32 bit integer Look up table entry index Outputs Out 8 bit integer Entry value Properties None Remarks Use look up table editor to set values of the entries Use check boxes on the left to set number of entries in the table Look up table edito ot eeng Enable look up table entries and set values 16 56 Extended Schedule Description Schedule is used to setup activation schedule by configuring multiple intervals To setup the intervals double click on the bl
7. None Memory 1 T delay 1 T delay simulates a one cycle delay In 32 bit integer Integer data input Q 32 bit integer Integer data output Default value Integer Default reset value None Memory MIN memory MIN memory remembers the minimum value of the Data in signal Use CLK input to reset the memory Data in 32 bit integer Integer data input CLK Logic Clock input signal Value 32 bit integer Stored minimum value Default value Integer Default reset value Retain on reset Logic If True the value is saved to battery backed RAM Also disabled default value setting Initial value Integer The initial value of the retained block after it gets uploaded to the device None WWW poscope com PoBlocks user manual March 31 2014 16 39 Memory MAX memory Description MAX memory remembers the maximum value of the Data in signal Use CLK input to reset the memory Inputs Data in 32 bit integer Integer data input CLK Logic Clock input signal Outputs Value 32 bit integer Stored maximum value Properties Default value Integer Default reset value Retain on reset Logic If True the value is saved to battery backed RAM Also disabled default value setting Initial value Integer The initial value of the retained block after it gets uploaded to the device Remarks None 16 40 Memory RAM 8 bit Description RAM 8 bit Inputs Data 8 bit integer Integer data input Address store 16 bit in
8. Variable input current value of the controlled variable SP 32 bit integer Set Point Outputs Out 32 bit integer On Off controller output Properties Gain Integer Controller gain Hysteresis Integer Half of the controller hysteresis the difference between turn on and turn off points The controller turns on at PV gt SP hysteresis 2 and turns off at PV lt SP hysteresis 2 Remarks None 16 66 Control PID Description PID PID controller is an implementation of a standard PID controller with filtered D part and output limits with integral anti windup protection Inputs PV 32 bit integer Process Variable input current value of the controlled variable SP 32 bit integer Set Point Outputs Out 32 bit integer PID controller output in the range from Out min to Out max Properties K Floating point Proportional gain Ti Floating point Integral time constant in seconds Td Floating point Derivative time constant in seconds Tf Floating point Derivative filter time constant set to a fraction of Td Out min Integer Output lower limitation minimum output value Out max Integer Output upper limitation maximum output value Remarks When cycle time of the project is set to 0 PID block can not be used in the diagram due to improper timing 16 67 Communication 1 wire R W Description 1 wire write and read operation block Inputs CLK Logic clock Inverted clock input signal Write 1 10 8 bit integ
9. Www poscope com PoBlocks user manual March 31 2014 13 Task manager PoBlocks features task manager feature that gives the user an insight into how the Poll code is being executed Task manager can be accessed when the connection with PoKeys device is established by clicking on Tools gt Task manger E Poll task manager Task Load Status Target cycle time Real cycle time 1 Inactive 21 2 TaskO 0 Running 3 Taskl 79 Running d ms Task manager shows all tasks that are currently being executed and the basic information on tasks performances Inactive task shows how much Load is still available to tasks unused processing time Task O is the primary task being executed by PoKeys device In periodic mode this task is only used to initialize and start other tasks and does not affect the operation afterwards while in non periodic mode only task O is used for code execution Last two columns show the Target cycle time set in the project settings and Real cycle time true real cycle time managed by the device 14 Shared data In order to share data between PolL code and other PoKeys systems Web dashboard and Modbus interface on Ethernet PoKeys devices third party applications on other devices or computers connected to PoKeys etc a shared data slots were introduced in PoKeys devices with Poll core support Each Shared data slot can hold 1 8 16 or 32 bit data which can be read or written by any
10. and dynamic block www poscope com PoBlocks user manual March 31 2014 Inputs Outputs Properties Remarks 41 output values content LCD UI block must be stimulated on the refresh input in order to refresh the contents of the LCD LCD refresh is a time consuming operation and is not done by PoBlocks or Poll code by itself user has to define a proper refresh time using clock signal block or generate a signal to refresh the LCD otherwise Double click on block to edit configuration Layout Logic Layout selection input Refresh Logic Refresh input LCD interface will be refreshed on low to high transition None Use secondary pins Logic If True LCD will be initialized on secondary pins as described in PoKeys manual LCD rows Integer 1 to 4 Number of rows in the LCD display LCD columns Integer 1 to 20 Number of columns in the LCD display LCD UI editor is split into layouts list on the left and a current layout editor on the right Start by adding a new layout using Add new button on the bottom Select the new layout and place static or dynamic contents to LCD To place static contents text click on the position on the LCD simulator and enter the text To navigate with keyboard use arrow keys LCD layouts Layout 0 This is one layout Selected variable Add nen Delete 4 Add variable Dynamic content is placed using the Add variable button on the bottom M
11. sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a PoLabs product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures 10 Usage the software in this release is for use only with PoLabs products or with data collected using PoLabs products 11 Fitness for purpose no two applications are the same so PoLabs cannot guarantee that its equipment or software is suitable for a given application It is therefore the user s responsibility to ensure that the product is suitable for the user s application 12 Viruses this software was continuously monitored for viruses during production however the user is responsible for virus checking the software once it is installed 13 Upgrades we provide upgrades free of charge from our web site at www poscope com We reserve the right to charge for updates or replacements sent out on physical media 14 Please contact a PoLabs support for details as to environmental matters such as the environmental compatibility of each PoLabs product Please use PoLabs products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive PoLabs assumes no liabili
12. value Logic The initial value of the retained block after it gets uploaded to the device None Memory D latch D latch simulates an asynchronous D latch D Logic D input signal E Logic E nable input signal www poscope com PoBlocks user manual March 31 2014 Outputs Properties Remarks 16 33 Description Inputs Outputs Properties Remarks 16 34 Description Inputs Outputs Properties Remarks 16 35 Description Inputs Outputs Properties Remarks 30 Q Logic Latch state Default value Logic Default value on reset Retain on reset Logic If True the value is saved to battery backed RAM Initial value Logic The initial value of the retained block after it gets uploaded to the device None Memory JK flip flop JK flip flop simulates a JK flip flop J Logic J input signal CLK Logic Clock input signal K Logic K input signal Q Logic Flip flop state Default value Logic Default value on reset Retain on reset Logic If True the value is saved to battery backed RAM Initial value Logic The initial value of the retained block after it gets uploaded to the device None Memory D flip flop D flip flop simulates a D flip flop D Logic D input signal CLK Logic Clock input signal Q Logic Flip flop state Default value Logic Default value on reset Retain on reset Logic If True the value is saved to battery backed RAM In
13. 8 Logic Compare GE Compare GE checks whether Value is greater than or equal to Reference Value 32 bit integer Input signal Reference 32 bit integer Reference signal Result Logic Result of comparison 1 if condition is met O otherwise Result Logic Negated result of the comparison Show negated output Logic Set to True to display the negated result output None Logic Compare EQ Compare EQ checks whether Value is equal to Reference Value 32 bit integer Input signal Reference 32 bit integer Reference signal Result Logic Result of comparison 1 if condition is met 0 otherwise Result Logic Negated result of the comparison Show negated output Logic Set to True to display the negated result output None Logic Compare LE Compare LE checks whether Value is lower than or equal to Reference Value 32 bit integer Input signal Reference 32 bit integer Reference signal Result Logic Result of comparison 1 if condition is met 0 otherwise Result Logic Negated result of the comparison Show negated output Logic Set to True to display the negated result output None Logic Compare LT Compare LT checks whether Value is lower than Reference Value 32 bit integer Input signal Reference 32 bit integer Reference signal Result Logic Result of comparison 1 if condition is met 0 otherwise Result Logic Negated result of the comparison Show negated output Log
14. A and B Inputs Integer 2 to 4 Number of inputs None Algebra Subtract Difference of two inputs A 32 bit integer First variable A B 32 bit integer Second variable B A B 32 bit integer Difference of A and B A B None None Algebra Multiply Product of inputs A 32 bit integer First variable A B 32 bit integer Second variable B C 32 bit integer Third variable C D 32 bit integer Forth variable D Product 32 bit integer Product of inputs Inputs Integer 2 to 4 Number of inputs None Algebra Divide Division of two inputs A 32 bit integer First variable A B 32 bit integer Second variable B A B 32 bit integer Division result of A and B A B None Division by zero triggers a Division by zero exception in PolL core To stop this from happening Disable division by zero exception must be enabled in project properties Algebra Modulo Modulo operation of two inputs A 32 bit integer First variable A B 32 bit integer Second variable B A mod B 32 bit integer Modulo operation result A modulo B WWW poscope com PoBlocks user manual March 31 2014 Properties Remarks 16 17 Description Inputs Outputs Properties Remarks 16 18 Description Inputs Outputs Properties Remarks None None Algebra Abs Absolute value of the input signal Input 32 bit integer Input variable Output 32 bit integer Absolute value of the input variab
15. Enable Logic Enable input If O no write to output will be performed Outputs None Properties Pin ID Integer 1 to 55 PoKeys pin ID as indicated on the device Init function Logic If true PoBlocks will setup the selected pin as digital input on startup Inverted Logic If true pin state will be inverted Default value Logic The default state of the output on reset True 1 False 0 Set to default on init Logic If true the value of the output is set to Default value on reset Show enable input Logic Set to True to display the Enable input Remarks None 16 3 IO Analog input Description Analog input is used to read one analog input value on PoKeys device Inputs None Outputs Value 16 bit integer Analog input value 0 to 4095 Properties Pin ID Integer 41 to 47 PoKeys pin ID as indicated on the device Init function Logic If true PoBlocks will setup the selected pin as digital input on startup Output value Other type Output value type selection Remarks None 2 1 WWW poscope com PoBlocks user manual March 31 2014 16 4 10 PWMoutput Description PWM output is used to set the duty cycle of the PWM pulse width modulated output Inputs Duty 32 bit integer Duty cycle in the range from 0 to Duty range block parameter Enable Logic Enable input If 0 no write operation will be performed Outputs None Properties Pin ID Integer 17 to 22 PoKeys pin ID as indicated on the device PWM period Int
16. alse 0 Set to default on init Logic If true the value of the output is set to Default value on reset Show enable input Logic Set to True to display the Enable input None IO PoExtBus module PoExtBus module sets the state of 8 PoExtBus outputs on selected PoExtBus module Output 1 8 Logic Output state Enable Logic Enable input If 0 no write operation will be performed None Module number Integer 1 to 10 PoExtBus module ID 1 10 Set to default on init Logic If true the value of the output is set to Default value on reset Output 1 8 default Logic The default state of the output on reset True 1 False 0 Show enable input Logic Set to True to display the Enable input None IO Pulse engine status Pulse engine status current position of the pulse engine None x 32 bit integer x axis y 32 bit integer y axis z 32 bit integer z axis None Algebra Sum Sum of inputs Inputs A 32 bit integer First variable A 24 B 32 bit integer Second variable B www poscope com PoBlocks user manual March 31 2014 Outputs Properties Remarks 16 13 Description Inputs Outputs Properties Remarks 16 14 Description Inputs Outputs Properties Remarks 16 15 Description Inputs Outputs Properties Remarks 16 16 Description Inputs Outputs 25 C 32 bit integer Third variable C D 32 bit integer Forth variable D Sum 32 bit integer Sum of
17. ck outputs single value based on the On Off values defined in the Schedule block editor in upper right corner r 7 Schedule editor iL S E Kee Gi Wei Drag the On Off time sliders with mouse to set time inverva If separate outputs option is enabled set to True the Schedule block outputs separate values for each defined rule with their respective On and Off values set in the fields on the right side of the dialog The Out output outputs a logical 1 0 value indicating whether any of the rules is active or not itor E 7 Schedule editor n Mo Tu We Th Fr In order to allow remote schedule modification Expose rules values option is available Additional rules outputs appear on the block which can be connected to Shared data slots The rule is bit wise encoded in a 32 bit value as described in the list below Bits 0 5 onMinute Bits 6 10 onHour Bits 11 16 offMinute Bits 17 21 offHour Bits 22 28 bit encoded week days Bits 29 31 unused O O O O O G 16 57 Extended Multiplexer n 1 Description Multiplexer n 1 routes an input specified by the SEL input to output Unconnected input will be resolved as 0 39 www poscope com PoBlocks user manual March 31 2014 Inputs Outputs Properties Remarks 16 58 Description Inputs Outputs Properties Remarks 16 59 Description Inputs Outputs Properties Remarks 16 60
18. d compiler process will be stopped User has to correct the errors before the diagram can be fully compiled and transferred to the PoKeys device Compile process executes the following operations The blocks are first put into a proper execution sequence based on their function and how they are connected to other blocks PolL core executes code of one block after the other and the proper sequence is required to obtain correct result If the diagram consists of algebraic loops closed loops containing blocks that can not be properly sectioned an error is thrown and user has to insert a proper 1 T delay block somewhere in the loop in order to instruct the compiler where to split the loop After the block execution sequence is defined Pol code is generated for each block Code of all blocks is joined and optimized Compile time errors if any are displayed in the errors pop up window 10 Modes of operation Run Step Stop When a PoKeys device is selected in the Device selection dialog an operating mode of the PolL core is automatically displayed in device controls as a highlighted item STOP Pol core is in STOPPED state no Pol code is being executed Step After pressing Step one cycle of Poll diagram will be executed and the Poll core will be put back to STOPPED mode Run Pol core is running normally Exception PolL core encountered an exception and had to be stopped For more info on the cause of the
19. d selecting a device refreshes the device information panel giving the user information on device s name its serial number current time and status of Pol core activation All PoKeys devices are shipped with PolL core disabled and user must enable the core once prior downloading the diagram to that device This is accomplished by clicking the Enable disable button note enabling Poll core disables keyboard macro capability of Pokeys56U devices PoKeys devices with a holder for a RTC battery support RTC real time clock that can be used for scheduling the events RTC in the device is set to current computer time by clicking the button Set time Select the PoKeys device from the list below PoKeys56U PoKeys56U 31350 Device info Device name PoKeys56U Serial number 31350 Time TTT EH set pme enabled Enable disable 11 Wwww poscope com PoBlocks user manual March 31 2014 7 3 Block library Block library panel contains graphical representations of function blocks in the PoBlocks library The library is divided into block categories and tabbed menu system is used to switch between these Each block in the block library offers integrated help system see the figure below that gets activated by hovering the mouse cursor over the block To insert the block from the library into the diagram drag a block using mouse cursor from the block library into the diagram i e hs File Edit View m Check and Tran
20. e De e T 30 15 31 Memory D Tm Honpn 30 EE GN Ta e T e eg TTT 30 1533 Me mory Data e lt 31 15 34 Memory 1T EE 31 15 35 Memory MIN MOMONY EE 31 1536 Memory MAX MEMO EE 32 15 37 Memory RAM 8 bit sss sese eee eee 32 15 38 Memory RAM HEES 32 1539 Memory RAM 32D RE 33 15 40 Tigger Ti GIO E E 34 1541 vT imne RE EdE EE 34 15 42 Trigger timing Falling edge etes vecast rater Taxe zebri niari Eiee in Es ad Eg ni 34 1543 Trigger Timing Up COUNTED eegegeetere geegent 34 1544 Trigger A dl le ee tu TE 35 15 45 Trigger timing Up COWN counter 35 15 46 Ne TIMING Pulse TIMED EE 35 1547 Trigger Umne On Ume ese ia saaneerrecactas ae paceaeadocin caavoeroncts atte scassacaeeasecinceurdereieantesaeseameasiars 36 15 48 Tri ger timing e an s T Gene eet eee ce ee cee 36 1549 WR Sig UMNE r Te TTT 37 15 50 Ee Tee EVEMU OUI E 37 15 51 Extended Look up table byte sss seene 38 Dee E en Ee Ee IT 38 1553 Extended Multiplexer E 39 15 54 See EAR lee Ca E 40 ds ios En Te Ade Ken TE 40 15 56 Extended Re scale ersen E TT 40 doo ENa ES ODO EE 40 15 58 Extended Custom e UE 42 s K CEES O E E T 43 7 www poscope com PoBlocks user manual March 31 2014 GED ee ug s lt PUD EE 43 Tok T e EE eegen 44 L MINS I TT 44 E ummm M E ERON ME 45 MO Meee nied eI EE 45 15 63 E En Ee RE 45 M506 IWS SHAT e K l lt T 45 15067 WSS SA E EE 46 16 GAOT Eegeregie Eege 47 8 www poscope com P
21. e assignment process for that shared data slot A shared port will be highlighted in yellow with the text showing Sx where x is the Shared data slot ID 0 Digital input gt Value 1 1 lt no port selected gt Value so 2 lt no port selected gt KEN 3 lt no port selected gt Digital input 1f 4 lt no port selected gt 5 lt no port selected gt 6 lt no port selected gt Shared slot ID displayed as a shared slot index in the list and on every port with shared slot assigned to is used to refer to this slot from other systems Certain memory objects data latch min max value memory etc can be used to read and write shared data slots When a latch clock signal for data latch or lower higher input value is detected a shared data slot value is updated with a new value If other systems write to the same shared data slot this new value is used in Pol code also 14 2 Reading data from shared data slots Use on of the Shared x bit blocks where x is 1 8 16 or 32 from the block library under the Misc category Shared data slot must then be assigned to the output port of that block figure below illustrates a Shared 16 bit block without and with a shared data slot assigned 19 www poscope com PoBlocks user manual March 31 2014 Monitoring and changing of shared data slots In order to see the values of shared data slots and or to change it open the Shared data slot manager to open i
22. eger PWM period in PWM clocks base PWM clock in PoKeys devices is 25 MHz that is shared among all PWM outputs to set the 1 ms period 1 kHz set the value to 25000 Init period Logic If true PoBlocks will initialize the PWM outputs with the specified PWM period value Duty range Integer Maximum value of Duty input that equals to 100 pulse width Default duty Integer Default value of the duty cycle set on reset Show enable input Logic Set to True to display the Enable input Remarks None 16 5 IO PWM output C Description PWM output C is used to set the duty cycle and period of the PWM pulse width modulated outputs PWM outputs 1 to 6 equate to pins 17 to 22 on PoKeys56E U Warning pulse width anomalies can occur when changing PWM period Inputs Period 32 bit integer PWM period in PWM clocks base PWM clock in PoKeys devices is 25 MHz that is shared among all PWM outputs to set the 1 ms period 1 kHz set the value to 25000 Update period Logic Update input On rising edge PWM period will be updated Duty 1 6 32 bit integer Duty cycle for PWM output 1 6 in percent Enable Logic Enable input If 0 no write operation will be performed Outputs None Properties Default period Integer Default PWM period set on reset Show enable input Logic Set to True to display the Enable input Default duty 1 6 Integer Default value of the duty cycle in percent Remarks None 16 6 IO Encoder value Description Enc
23. er Bytes 1 10 to write to 1 wire device Outputs Busy Logic Busy signal Read 1 10 8 bit integer Bytes 1 10 that are read from 1 wire device Properties Write count Integer 0 to 10 Number of bytes to write to 1 wire bus Read count Integer 0 to 10 Number of bytes to read from 1 wire bus Remarks Communication is started on falling edge of the CLK input in order to support chaining multiple communication blocks using busy signals when one device completes the communication session its Busy signal goes from 1 to 0 which then triggers a communication session on another block in the chain 43 www poscope com PoBlocks user manual March 31 2014 16 68 Communication 12C read Description CC read operation block Inputs CLK Logic clock Inverted clock input signal Address 8 bit integer VC device address Outputs Busy Logic Busy signal Error Logic Error signal Read 1 10 8 bit integer Bytes 1 10 to be read from 12C device Properties Read count Integer 0 to 10 Number of bytes to read from C device Remarks Communication is started on falling edge of the CLK input in order to support chaining multiple communication blocks using busy signals when one device completes the communication session its Busy signal goes from 1 to 0 which then triggers a communication session on another block in the chain 16 69 Communication 12C write Description 1 C write operation block Inputs CLK Logic clock
24. er direction input Rising edge Logic If true counter will be incremented on rising signal edges Falling edge Logic If true counter will be incremented on falling signal edges Clear on start Logic If true counter will be reset on startup Show reset input Logic If true reset input is displayed Remarks None 16 8 IO Sensor value Description Sensor value outputs the current value of the selected sensor Inputs None Outputs Value 32 bit integer Sensor value Sensor OK Logic Sensor status 0 if sensor is inactive or error occured Properties Sensor ID Integer 1 to 27 PoKeys sensor ID as configured in PoKeys configuration I2C sensors have IDs between 1 and 10 1 wire sensors have IDs between 11 and 20 analog sensors have IDs between 21 and 27 Remarks None 2 3 WWW poscope com PoBlocks user manual March 31 2014 16 9 Description Inputs Outputs Properties Remarks 16 10 Description Inputs Outputs Properties Remarks 16 11 Description Inputs Outputs Properties Remarks 16 12 Description IO PoExtBus output PoExtBus output sets the state of one output on PoExtBus module Output Logic Output state Enable Logic Enable input If O no write operation will be performed None Module number Integer 1 to 10 PoExtBus module ID 1 10 Module output Integer 1 to 8 PoExtBus output ID 1 8 Default value Logic The default state of the output on reset True 1 F
25. exception click the red Exception button 1 6 WWW poscope com PoBlocks user manual March 31 2014 11 Exceptions The following figure displays a Division by zero exception description after clicking the Exception mode button in the device controls The dialog also displays the most probable block that caused the exception File Edit View pols e UN wm keng on Check and Transfer 10 Algebra Logic Memory Trigger timing Extended Control Misc SG SG oa E Project properties Execution Reset core on True Ca Poll core encountered an exception Auto start C False Block Divide Division by zero Cycle time 10 Disable divisio False Target device PoKeys56 series General 12 Monitor mode PoBlocks features a Monitor mode that is used to observe the PoBlocks diagram execution on the device in nearly real time Monitor mode can be enabled after the diagram is compiled and transferred to the device using the Monitor mode toggle switch in device controls section Once activated no changes to the diagram are allowed until the monitor mode is deactivated All output ports of blocks in the diagram are equipped with the output value display that extend over the connection to the other block Connections that carry Boolean signals On Off True False are colored in gray inactive Off False or in light green active On True giving user a visual feedback of the diagram state 17
26. gging monitoring with PoBlocks your diagrams are simply created then compiled and downloaded to the device with one click When it comes to debugging or monitoring the process simply activate the monitor mode and all outputs and connections will be populated with current values www poscope com PoBlocks user manual March 31 2014 3 Requirements e Windows XP Vista 7 8 other platforms coming soon Visual C 2010 Redistributable Package installed on the target computer e PokKeys56 or newer device on USB or network 4 Installation PoBlocks application is a part of the PoKeys software installation package available free of charge on WWwW poscope com 4 www poscope com PoBlocks user manual March 31 2014 5 Contents E POBO CS e yhe EO EE 3 Ze WWW WEN 3 SC Se UE 4 a EE lt e ces E cnc tarts cd gcse oe E sa escapee anne moar E 4 See SEENEN 5 6 PEAS Dn R c eT HIS UC ENON access tare Erni T E ieeda nae EO A 9 Bide OperaUng y a e 9 Ca ee ee E ee EE 9 oe E e lt d 9 eRe nee Sa ene a ee tc ne nS eS ene ee nnn ere eee 9 Ee Belo eyed ere 5 1511 EE 9 Te USGI IEC lel C T 10 ZA Ke te Ee LE Lee en ge E 10 DZ DEV Le SATS ee lt T Te assesses rhets rece sents scant cence etn octet re E E 11 P AIO e lt ANY dee ccs ces A eats ected EE 12 Pils Propere panel T 12 Dede yer od leie eg 12 E Wane e lee 13 GN erine DO E 13 Sele ROTI OVS DIOCKS marrera E 14 Baa MOVE lee 14 Da ee ele Ce le DOCK EE 14 Sa ORE p l
27. han O is specified In this mode minimum cycle time for execution is limited by the code size but cannot be lower than 1 ms In non periodic mode cycle time set to 0 task 0 is used and cycle time depends solely on the Pol code size PoBlocks features an integrated Task manager that displays the target and actual cycle times of the tasks being executed Task manager is found in PoBlocks application menu under Tools gt Task manager For more details see Task manager below 6 4 PolL programming PoBlocks enables low level Pol language programming using the custom Poll block Contact us at support poscope com and request Poll documentation document www poscope com PoBlocks user manual March 31 2014 7 User interface PoBlocks user interface is displayed below Top area contains menu bar tolbar with device controls and block library Bottom left area is diagram design area while the right part is reserved for properties panel that contains dynamic properties of project or currently selected block Menu bar Device controls Toolbar Block library Properties Design area p panel 7 1 Toolbar and device controls Toolbar gives the access to most frequently used functions of the PoBlocks application Besides creating new opening and saving the designed diagram Compile and transfer button enables one click compiling checking and transferring of the diagram to the device If the code is already run
28. ic Set to True to display the negated result output www poscope com PoBlocks user manual March 31 2014 Remarks None 16 29 Description Inputs Outputs Properties Remarks 16 30 Description Inputs Outputs Properties Remarks 16 31 Description Inputs Outputs Properties Remarks 16 32 Description Inputs 29 Logic Compare NE Compare NE checks whether Value is not equal to Reference Value 32 bit integer Input signal Reference 32 bit integer Reference signal Result Logic Result of comparison 1 if condition is met 0 otherwise Result Logic Negated result of the comparison Show negated output Logic Set to True to display the negated result output None Memory Set Reset latch Set Reset latch simulates an asynchronous SR Set Reset latch S Logic Set input signal R Logic Reset input signal Q Logic Latch state Default value Logic Default value on reset Retain on reset Logic If True the value is saved to battery backed RAM Also disables default value setting Initial value Logic The initial value of the retained block after it gets uploaded to the device None Memory JK latch JK latch simulates an asynchronous JK latch J Logic J input signal K Logic K input signal Q Logic Latch state Default value Logic Default value on reset Retain on reset Logic If True the value is saved to battery backed RAM Initial
29. ies Remarks 46 disables default value setting Initial value Integer The initial value of the retained block after it gets uploaded to the device None Misc Shared 32 bit Shared 32 bit simulates a simple memory latch for use with shared slots None 32 bit integer Stored integer data Default value Integer Default reset value Retain on reset Logic If True the value is saved to battery backed RAM Also disables default value setting Initial value Integer The initial value of the retained block after it gets uploaded to the device None www poscope com PoBlocks user manual March 31 2014 17 Grant of license The material contained in this release is licensed not sold PoLabs grants a license to the person who installs this software subject to the conditions listed below Access The licensee agrees to allow access to this software only to persons who have been informed of and agree to abide by these conditions Usage The software in this release is for use only with PoLabs products or with data collected using PoLabs products Copyright PoLabs claims the copyright of and retains the rights to all material software documents etc contained in this release You may copy and distribute the entire release in its original state but must not copy individual items within the release other than for backup purposes Liability PoLabs and its agents shall not be liable for any loss or damage how
30. isplayed in the grid 7 5 Project properties Project properties are accessed by clicking on an empty space in the designing area an area without blocks or connections The following options are available in the properties panel 12 Www poscope com PoBlocks user manual March 31 2014 Reset core on startup if checked Poll core executes the initialization code on PoKeys device startup defining the pin functions setting up the peripherals used in the diagram etc Auto start if checked Poll core starts Poll code execution immediately after the PoKeys device is powered up Cycle time this option sets the cycle time defining the time between each diagram PolL code execution Disable division by zero exception if checked division by zero event does not stop PolL code execution but generates result 0 Target device a drop box menu used to select the device type that will be used to execute the diagram s code General section contains fields used for project documentation purposes 8 Using PoBlocks 8 1 Inserting blocks Properties shared data Memory Project properties Execution Reset core on True Auto start Cycle time E False 10 Disable divisio False Target device General Author Project name Date Use left mouse button to drag a selected block from the block library to design area PoBlocks Bet en PoBlocks Bet Edit View Tools Help File Edit View ools ae i lt m t
31. itial value Logic The initial value of the retained block after it gets uploaded to the device None Memory T flip flop T flip flop simulates a T flip flop T Logic T input signal CLK Logic Clock input signal Q Logic Flip flop state Default value Logic Default value on reset Retain on reset Logic If True the value is saved to battery backed RAM Initial value Logic The initial value of the retained block after it gets uploaded to the device None www poscope com PoBlocks user manual March 31 2014 16 36 Description Inputs Outputs Properties Remarks 16 37 Description Inputs Outputs Properties Remarks 16 38 Description Inputs Outputs Properties Remarks 31 Memory Data latch Data latch simulates a data latch Similar to D flip flop but supports integers for input D flip flop uses logical signals only Data in 32 bit integer Integer data input CLK Logic Clock input signal Value 32 bit integer Stored integer data Value F 32 bit integer Stored integer data on falling edge in bi directional mode Default value Integer Default reset value Bi directional Logic If True the latch samples on both the rising edge and falling edge Retain on reset Logic If True the value is saved to battery backed RAM Also disables default value setting Initial value Integer The initial value of the retained block after it gets uploaded to the device
32. itial value of the retained block after it gets uploaded to the device Initial RAM value Integer 0 to 65535 The initial value of the retained block after it gets uploaded to the device Remarks None 16 42 Memory RAM 32 bit Description RAM 32 bit Inputs Data 32 bit integer Integer data input Address store 16 bit integer Address of the destination memory CLK store Logic Clock input signal for storing data Address load 16 bit integer Address of the destination memory CLK load Logic Clock input signal for retrieving data Outputs Data 32 bit integer Stored integer data on falling edge in bi directional mode Properties Memory size Integer 1 to 255 Number of memory cells Retain on reset Logic If True the value is saved to battery backed RAM Also disables default value setting Initial value Integer The initial value of the retained block after it gets uploaded to the device Initial RAM value Integer The initial value of the retained block after it gets uploaded to the device Remarks None 16 43 Memory Sample hold Description Sample hold simulates a sample and hold element When the sample input is enabled the block operates in transparent mode When sample input is disabled the output retains the last value Inputs Data in 32 bit integer Integer data input Sample Logic Sample input signal Outputs Value 32 bit integer Stored integer data Properties Default value Integer Defau
33. le None None Algebra Min Min Minimum of inputs A 32 bit integer First variable A B 32 bit integer Second variable B C 32 bit integer Third variable C D 32 bit integer Forth variable D Min 32 bit integer Minimum value of inputs Inputs Integer 2 to 4 Number of inputs None 16 19 Algebra Max Description Inputs Outputs Properties Remarks 16 20 Description Inputs Outputs Properties Remarks 26 Max Maximum of inputs A 32 bit integer First variable A B 32 bit integer Second variable B C 32 bit integer Third variable C D 32 bit integer Forth variable D Max 32 bit integer Maximum value of inputs Inputs Integer 2 to 4 Number of inputs None Logic NOT NOT negation logic Input Logic Input signal Input Logic Negated input signal None None www poscope com PoBlocks user manual March 31 2014 16 21 Description Inputs Outputs Properties Remarks 16 22 Description Inputs Outputs Properties Remarks 16 23 Description Inputs Outputs Properties Remarks 16 24 Description Inputs Logic AND AND logical AND operation A Logic A signal input B Logic B signal input C Logic C signal input D Logic D signal input AND Logic Result of logical AND operation on input signals NAND Logic Negated result of logical AND operation Show negated output Logic Set to True to display the NAND out
34. lt reset value Retain on reset Logic If True the value is saved to battery backed RAM Also disables default value setting Initial value Integer The initial value of the retained block after it gets uploaded to the device Remarks None 3 3 www poscope com PoBlocks user manual March 31 2014 16 44 Description Inputs Outputs Properties Remarks 16 45 Description Inputs Outputs Properties Remarks 16 46 Description Inputs Outputs Properties Remarks 16 47 Description Inputs Outputs Properties 34 Trigger timing Clock source Clock source Half time period 32 bit integer Dynamic Half time period optional input Clock Logic Half time period Integer 1 to 3600000 Half of the clock time period in milliseconds set to 500 for 1 Hz clock Show dynamic input Logic If set to True Half time period input is enabled None Trigger timing Rising edge Rising edge triggers the output when the nput signal value changes from 0 to 1 rises Input Logic Input signal Change Logic Output indicating a change in the input signal None None Trigger timing Falling edge Falling edge triggers the output when the nput signal value changes from 1 to 0 falls Input Logic Input signal Change Logic Output indicating a change in the input signal None None Trigger timing Up counter Up counter counts the Clock input positive rising changes from 0
35. ning the device a dialog appears asking user to confirm the download procedure Device controls panel enables user to interact with the PolL core in the PoKeys device Switch to PoKeys application Device selection Start Pol code execution S nr e er ke Reset STOP step J Disconnect Monitor mode Reset PolL core Stop PolL core Execute 1 cycle The following controls are available Switch to PoKeys application disconnect and open PoKeys application for advanced peripheral setup and testing This option is only available if PoKeys application is installed to the default installation path Disconnect click this to disconnect from current device 10 Www poscope com PoBlocks user manual March 31 2014 Device selection this opens a device selection dialog to select a device to download the PolL code to Monitor mode clicking the Monitor mode button enables or disables the real time monitor mode this is available after the diagram has been successfully compiled and downloaded to the device Reset PolL core use this command to reset the PolL code execution Stop PolL core this command stops the Poll code execution Execute 1 cycle step this command executes the Poll code of the diagram once and switches the PolL core state back into STOPPED mode 7 2 Device selection dialog Device selection dialog is used to select a PoKeys device to work with All detected devices are displayed in the list an
36. oBlocks user manual March 31 2014 6 PoLabs PolL core introduction PoKeys PolL core is a virtual 16 32 bit software processor which interprets PolL code in PoKeys device and has access to various PoKeys peripherals Poll code is created in the compiling process in the PoBlocks application and is stored in the flash memory of the PoKeys device 6 1 Operating modes Poll core has the following operating modes STOPPED Poll core is stopped and no code is being executed RUNNING PolL core is executing code EXCEPTION Poll core encountered an error and execution had to be stopped PAUSE PolL core is temporarily halted and when restarted continues from this point 6 2 Start up configuration When PoKeys device is started power is applied the Pol core can be reset initialization code executed and Pol code execution can start automatically By default Pol code is not automatically executed on reset Auto start is disabled 6 3 Cycle time The Poll core supports priority based pre emptive scheduler that switches between two or more on later versions tasks Task O has the lowest priority and is enabled by default Other tasks are periodic tasks that have a fixed time period between executions Task switching is done at 1 ms intervals or on task exit events Task 1 is automatically used and enabled by PoBlocks software for executing the PolL code of the diagram when periodic mode is selected when cycle time greater t
37. ock in the scheme Inputs None Outputs Out 8 bit integer Activation signal Out 1 10 8 bit integer Interval specific optional ouputs Rule 1 10 32 bit integer interval specific optional rule access that can be used to access and modify rule data using shared slots Properties Separate outputs Logic When enabled each interval rule drives its own output Out is still the OR ed value of all Expose rules values Logic When enabled each interval rule is connected to the output allowing remote changes to the intervals Rules Integer 1 to 10 Number of scheduler rules Retain on reset Logic If True the value is saved to battery backed RAM Also disables default value setting Remarks Use schedule editor to configure the time based output activation rules Up to 10 rules can be defined for a single Schedule block a slider based interface Double click 38 www poscope com PoBlocks user manual March 31 2014 the Schedule block to access the editor Each rule defines one time interval during which the output is activated Use left mouse button to drag the ON and OFF sliders to appropriate positions and select weekdays that the rule is valid on If OFF slider is positioned to the left of the ON slider ON slider time refers to the time in the next day By default 2 rules are available for setup to increase the number of rules change the Rules property of the block With separate outputs option set to False the blo
38. oder value reads the value of the encoder counter Inputs None Outputs Encoder 32 bit integer Encoder counter value Properties Encoder ID Integer 1 to 26 PoKeys encoder ID 0 to 25 Channel A pin Integer 1 to 55 PoKeys pin ID as indicated on the device used for encoder A channel signal 2 2 www poscope com PoBlocks user manual March 31 2014 Channel B pin Integer 1 to 55 PoKeys pin ID as indicated on the device used for encoder B channel signal Multiplier 4x Logic Activate the 4x multiplier for encoder signals encoder counter is incremented on any change of the A or B signals Init encoder Logic If true PoBlocks will initialize the encoder with the specified settings on startup Clear on start Logic If true encoder counter will be reset on startup Show reset input Logic If true reset input is displayed Remarks None 16 7 IO Digital counter Description Digital counter reads the value of the digital counter Digital counter enables counting signals of higher frequencies Inputs None Outputs Value 32 bit integer Digital counter value Properties Counter pin Integer 1 to 55 PoKeys pin ID as indicated on the device used as digital counter input Not all pins support digital counters advise PoKeys manual Use direction pin Logic If True pin specified by Direction pin is used to define the count direction Direction pin Integer 1 to 55 PoKeys pin ID as indicated on the device used as digital count
39. of the involved systems Most frequently PolL code writes to Shared data slot in order to allow other systems e g PoKeys Dashboard or Modbus device or reads from Shared data slot in order to obtain data from other systems e g user interaction via Dashboard or Modbus device operation 14 1 Writing data to Shared data slot In order to write data to shared data slot switch to Shared data tab in the properties section and double click on an empty slot to start the slot assignment process figure below A circular selection will appear in the design area instructing you to select an output port to share 18 www poscope com PoBlocks user manual March 31 2014 Sto fe Reset STOP Step Run D Algebra Logic Memory Trigger timing Extended Control Misc nme gL Ss bad dd KAY a IN OUT IN OUT Encode Counter Sensor a Double dck fe E Select the output port 1 lt nop 2 lt no port selected gt GE Select output port to share 8 3 lt no port selected gt 4 lt no port selected gt Digital input 5 lt no port selected gt 6 lt no port selected gt 7 lt no port selected gt 8 lt no port selected gt 9 lt no port selected gt 10 lt no port selected gt 11 lt no port selected gt 12 lt no port selected gt 13 lt no port selected gt 14 lt no port selected gt Move the cursor over to the port you want to share and click on it this will complete th
40. ound other blocks to improve the readability of the diagram intermediate points can be added to the connection Just click on an empty space while dragging the connection and an intermediate point will appear Based on the connection profile the connection will pass the intermediate point in either vertical or horizontal direction To move the intermediate point complete the connection click on the intermediate point and drag it into the correct position Due to the properties of the block diagrams left port input of each block can be connected to only one right port output of another or the same block However each output can be connected to multiple inputs PoBlocks uses these rules and refuses a connection that breaks them 14 WWW poscope com PoBlocks user manual March 31 2014 In order to connect multiple inputs left ports to one output right port start by creating a base connection between one input and one output Then start adding another connection by clicking on an empty input and complete the connection by clicking on an existing connection Digital output Digital output Digital output Si Digital output Digital input Digital output Digital input Digital output Digital input Digital input Som output Digital output Digital output Digital output Digital output 8 6 Constant inputs Often a simple constant value is used as an input parameter In order to insert a constant value right click on an empty input
41. ounter vaue on the Clock up input positive rising changes and decrements the counter on the Clock down input positive rising changes The counter value Value is limited to the range between including 0 to PV Inputs Clock up Logic Counter increasing pulse signal Clock down Logic Counter decreasing pulse signal Reset Logic When 1 resets the counter value Value to 0 Load PV Logic When 1 counter value Value is loaded with value of PV PV 32 bit integer Initial maximum counter value Outputs QU Logic Indicates whether counter has reached maximum value QD Logic Indicates whether counter has reached 0 Value 32 bit integer Current counter value Properties Default value Integer Default reset value of the counter Retain on reset Logic If True the value is saved to battery backed RAM Also disables default value setting Initial value Integer The initial value of the retained block after it gets uploaded to the device Remarks None 16 50 Trigger timing Pulse timer Description Pulse timer triggers on IN high input signal and turns off after the period defined by PT uneffected by the N signal state during this period as illustrated below Inputs IN Logic Timer activation signal input 3 5 www poscope com PoBlocks user manual March 31 2014 PT 32 bit integer Timer period signal input in ms Outputs Q Logic Timer activation status signal ET 32 bit integer Timer current time signal in ms P
42. ove cursor to the position where you want to position the dynamic contents and press Add variable A grey rounded rectagle will appear click on it to edit the display properties use the Format field to enter the number format and Block Port drop down boxes to select the data source www poscope com PoBlocks user manual March 31 2014 Selected variable Format e g X0 0 00 X0 x0 X decimal or space if number is small 0 decimal or 0 placeholder sign is always visible sock Een Pon Coax 16 62 Extended Custom PolL Description Custom PolL for custom PolL code double click on block to edit code Inputs Up to 10 inputs of various types Outputs Up to 10 outputs of various types Properties None Remarks None 16 63 Extended Byte to bits Description Byte to bits extracts individual bits from the byte variable on input bit 0 being least significant one Inputs In 8 bit integer Input variable Outputs Bit 0 7 Logic Bit O LSb Bit 7 MSb Properties None Remarks None 16 64 Extended Bits to byte Description Bits to byte joins individual bits to the byte variable on output bit 0 being least significant one Inputs Bit O Logic Bit O LSb Bit 7 MSb Outputs Out 8 bit integer Output variable Properties None Remarks None 42 www poscope com PoBlocks user manual March 31 2014 16 65 Control On off Description On off Inputs PV 32 bit integer Process
43. put Inputs Integer 2 to 4 Number of logical inputs None Logic OR OR logical OR operation A Logic A signal input B Logic B signal input C Logic C signal input D Logic D signal input OR Logic Result of logical OR operation on input signals NOR Logic Negated result of logical OR operation Show negated output Logic Set to True to display the NOR output Inputs Integer 2 to 4 Number of logical inputs None Logic XOR XOR logical XOR operation A Logic A signal input B Logic B signal input XOR Logic Result of logical XOR operation on input signals EQ Logic Negated result of logical XOR operation Show negated output Logic Set to True to display the EQ output None Logic Compare GT Compare GT checks whether Value is greater than Reference Value 32 bit integer Input signal Reference 32 bit integer Reference signal Outputs Result Logic Result of comparison 1 if condition is met 0 otherwise www poscope com 27 PoBlocks user manual March 31 2014 Result Logic Negated result of the comparison Properties Show negated output Logic Set to True to display the negated result output Remarks None 16 25 Description Inputs Outputs Properties Remarks 16 26 Description Inputs Outputs Properties Remarks 16 27 Description Inputs Outputs Properties Remarks 16 28 Description Inputs Outputs Properties 2
44. rom is used to route signals across the schematic None gt gt gt Output port of the link Link ID Integer Link ID see block description Only one To block can be specified for one Link ID while multiple From blocks can be specified for the same Link ID Misc Shared 1 bit Shared 1 bit simulates a simple memory latch for use with shared slots None Logic Stored integer data Default value Logic Default reset value Retain on reset Logic If True the value is saved to battery backed RAM Also disables default value setting Initial value Logic The initial value of the retained block after it gets uploaded to the device None Misc Shared 8 bit Shared 8 bit simulates a simple memory latch for use with shared slots None 8 bit integer Stored integer data Default value Integer Default reset value Retain on reset Logic If True the value is saved to battery backed RAM Also disables default value setting Initial value Integer The initial value of the retained block after it gets uploaded to the device None Misc Shared 16 bit Shared 16 bit simulates a simple memory latch for use with shared slots None 16 bit integer Stored integer data Default value Integer Default reset value Retain on reset Logic If True the value is saved to battery backed RAM Also WWW poscope com PoBlocks user manual March 31 2014 Remarks 16 76 Description Inputs Outputs Propert
45. roperties None Remarks IN I PI PI HI oJ e U Le 16 51 Trigger timing On timer Description On timer or on delay timer starts counting time on N input signal rising edge and turns on after the period defined by PT The timer is reset if the input signal N goes to low state as illustrated below Inputs IN Logic Timer activation signal input PT 32 bit integer Timer period signal input in ms Outputs Q Logic Timer activation status signal ET 32 bit integer Timer current time signal in ms Properties None Remarks IN L eql i Karl 16 52 Trigger timing Off timer Description Off timer or off delay timer activates on N high input signal state The timer starts counting on the N input signal falling edge and turns off after the period defined by PT The counter is reset if the input signal N goes to high state and the timer stays activated as illustrated below Inputs IN Logic Timer activation signal input PT 32 bit integer Timer period signal input in ms Outputs Q Logic Timer activation status signal ET 32 bit integer Timer current time signal in ms Properties None Remarks IN II FI F FT 3 6 WWW poscope com PoBlocks user manual March 31 2014 16 53 Trigger timing Time Description Time is used to read current date and time Inputs None Outputs Second 8 bit integer Seconds Minute 8 bit integer Minute Hour 8 bit integer Hour Day of month
46. sfe Reset STOP Step Run IO Algebra Logic Memory Trigger timing Extended Control Misc DU DU Ca SI Gas ER Cy Ra ae IN OUT IN OUT Encode Counter Sensor Lad et OUT PWM output is used to set the duty cycle of the PWM pulse width geng Value modulated output Project properties Parameters Execution Pin ID PoKeys pin ID as indicated on the device PWM period PWM period in PWM clocks base PWM clock in PoKeys True Reset core on devices is 25 MHz that is shared among all PWM outputs to set the 1 ms Auto start C False period 1 kHz set the value to 25000 Cycle time 10 Init period If true PoBlocks will initialize the PWM outputs with the Disable divisio False specified PWM period value S 56 seri Duty range Maximum value of Duty input that equals to 100 pulse L eech a S width General Default duty Default value of the duty cycle set on reset Author Show enable input Set to True to display the Enable input Project name Date Inputs m Duty Integer Duty cycle in the range from 0 to Duty range block an SE mna parameter Enable Logic Enable input If 0 no write operation will be performed Outputs None 7 4 Properties panel Properties panel contains a dynamic grid of properties based on the currently selected object in the diagram By clicking on an empty space without blocks PoBlocks project properties are d
47. soever caused related to the use of PoLabs equipment or software unless excluded by statute Fitness for purpose No two applications are the same so PoLabs cannot guarantee that its equipment or software is suitable for a given application It is therefore the user s responsibility to ensure that the product is suitable for the user s application Mission Critical applications Because the software runs on a computer that may be running other software products and may be subject to interference from these other products this license specifically excludes usage in mission critical applications for example life support systems Viruses This software was continuously monitored for viruses during production however the user is responsible for virus checking the software once it is installed Support No software is ever error free but if you are unsatisfied with the performance of this software please contact our technical support staff who will try to fix the problem within a reasonable time Upgrades We provide upgrades free of charge from our web site at www poscope com We reserve the right to charge for updates or replacements sent out on physical media Trademarks Windows is a registered trademark of Microsoft Corporation PoKeys PoKeys55 PoKeys56U PoKeys56E PoScope PoLabs and others are internationally registered trademarks 47 www poscope com
48. t MOUS TTT 15 Geelen 15 8 7 e e ie d Ett DIOCKS E 15 Ie e lt T sZ lt Tse 16 10 Modes of operation Run Step SCOP sese ee eee eee 16 11 ES ONG ecco ec ee ranean nd een he pansies ashe estan ger ah ee eines gi cae enis 17 12 W eT eg ru er 17 13 CTi s CA BEE 18 13 1 Writing data to Shared data SOU E 18 WWW poscope com PoBlocks user manual March 31 2014 13 2 R ading Gala from shared data ee 19 14 POBIOCKS AA Ty E a E E E E ee ee 20 15 Blocks description 21 15 1 Le nne WOU TTT 21 15 2 Te Mere 21 15 3 ORANIE el seeren E A S 21 15 4 OPWM OUI EE 22 15 5 OPEN COO CI E 22 15 6 Le Reie He OU e E 23 15 7 Oe Ee e 23 15 8 O POEA Eed e E 24 15 9 OS Ke gn e Te UE 24 15 10 WO EE TEE E 24 KN ke DE et E T T ME 24 ds es Pm H T lt EE Ninn ner RK eee 25 dis yea Algebra LI de Vaan steer eee ee eee 25 K L HE RTE 25 1l Alepa e e e EE 25 nh Oe E e cement ee ee nee en ere 26 S MOG Te A RE 26 i Rs fel lt E lt 7 A IR ere ne ere nee eer ee eee E ee ee en 27 EN L PO EE 27 ef R lt 1 TS 61 gege 27 K TORIC COMM Ane EH BE 27 1522 Logic el eg CC EE 28 EE EE 28 E OBI COTS LE err 28 E OBIS SCOR ABE EE 28 ke OTT ele E INE keea ese oatatoatae see uruie nice a E a sauenc arb ata E AEE 29 15 27 Te G s cl dp aici d ce eee eee ne ee Cee ne E ree eee err ee renee 29 1528 Memory JKIIC E 29 WWW poscope com PoBlocks user manual March 31 2014 KA IOI DV CI E 29 10 MONA
49. t go to Tools gt Shared slot manager menu Slot 0 Slot 1 Slot 2 Slot 3 Slot 4 Slot 5 Slot 6 Slot 7 Slot 8 Slot 9 Slot 10 Slot 11 Slot 12 Slot 13 Slot 14 Slot 15 Slot 16 Slot 17 15 PoBlocks data types In general PoBlocks supports Boolean values 1 bit and signed integer numbers 8 16 or 32 bit While most of blocks use predefined data types for inputs and outputs PoBlocks compiler converts between the types automatically without user intervention Support for floating point arithmetic is not implemented fix point arithmetic has to be used instead by the user e g to obtain 0 01 resolution all calculations must be done with numbers greater for a factor of 100 only divided or modulated by 100 when displaying the values to the user 20 www poscope com PoBlocks user manual March 31 2014 16 Blocks description 16 1 IO Digital input Description Digital input is used to read the state of the digital input on PoKeys device Inputs None Outputs Value Logic Digital input state Properties Pin ID Integer 1 to 55 PoKeys pin ID as indicated on the device Init function Logic If true PoBlocks will setup the selected pin as digital input on startup Inverted Logic If true pin state will be inverted Remarks None 16 2 IO Digital output Description Digital output is used to set the state of the digital output on PoKeys device Inputs Output Logic Digital output state
50. t gives user a good insight in how the program executes in real time 2 Main features 6 Simple and intuitive graphical user interface with integrated support just open the application and start designing your diagram Drag the function blocks from the graphical toolbar with mouse and connect them by clicking on the input output ports When in doubt hover over the block to access the integrated help 6 Support for wide array of PoKeys peripherals PoBlocks gives you the access to digital inputs and outputs analog inputs PWM outputs encoder inputs digital counters PoExtBus outputs and more just by dragging a block and selecting the pins in the property panel on the right e Algebra logic blocks Choose from basic algebra functions and logic functions to create simple conditional logics e Memory blocks use JK D T or data latches minimum maximum value memories simple RAM blocks e Trigger and timing functions PoBlocks offers counters signal level triggers on off and pulse timers etc e Advanced blocks weekly time schedule LCD interface support with multiple layouts drum style programming process control etc Advanced blocks enable you to quickly start controlling your process as you want it If no block suit your needs Custom PolL block enables custom Poll code execution e One click compiling and downloading when satisfied with your design compile it and download it to the device with only one click e Real time debu
51. teger Address of the destination memory CLK store Logic Clock input signal for storing data Address load 16 bit integer Address of the destination memory CLK load Logic Clock input signal for retrieving data Outputs Data out 8 bit integer Stored integer data on falling edge in bi directional mode Properties Memory size Integer 1 to 255 Number of memory cells Retain on reset Logic If True the value is saved to battery backed RAM Also disables default value setting Initial value Integer 0 to 255 The initial value of the retained block after it gets uploaded to the device Initial RAM value Integer 0 to 255 The initial value of the retained block after it gets uploaded to the device Remarks None 16 41 Memory RAM 16 bit Description RAM 16 bit Inputs Data 16 bit integer Integer data input Address store 16 bit integer Address of the destination memory CLK store Logic Clock input signal for storing data Address load 16 bit integer Address of the destination memory CLK load Logic Clock input signal for retrieving data Outputs Data out 16 bit integer Stored integer data on falling edge in bi directional mode Properties Memory size Integer 1 to 255 Number of memory cells Retain on reset Logic If True the value is saved to battery backed RAM Also disables default value setting 3 2 www poscope com PoBlocks user manual March 31 2014 Initial value Integer 0 to 65535 The in
52. therwise is granted hereby under any patents copyrights or other intellectual property rights of PoLabs or others PoLabs claims the copyright of and retains the rights to all material software documents etc contained in this release You may copy and distribute the entire release in its original state but must not copy individual items within the release other than for backup purposes 3 Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of the products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment PoLabs assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information 4 PoLabs has used reasonable care in preparing the information included in this document but PoLabs does not warrant that such information is error free PoLabs assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein 5 PoLabs devices may be used in equipment that does not impose a threat to human life in case of the malfunctioning such as computer interfaces office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and indus
53. to value specified by PV input Clock Logic Counter pulse signal Reset Logic When 1 resets the counter value Value to 0 PV 32 bit integer Maximum counter value Q Logic Indicates whether counter has reached maximum value Value 32 bit integer Current counter value Default value Integer Default reset value of the counter Retain on reset Logic If True the value is saved to battery backed RAM Also disables default value setting Initial value Integer The initial value of the retained block after it gets uploaded to the device www poscope com PoBlocks user manual March 31 2014 Remarks None 16 48 Trigger timing Down counter Description Down counter decrements the counter on the Clock input positive rising changes from value specified by PV input to 0 Inputs Clock Logic Counter pulse signal Load PV Logic When 1 counter value Value is loaded with value of PV PV 32 bit integer Initial counter value Outputs Q Logic Indicates whether counter has reached 0 Value 32 bit integer Current counter value Properties Default value Integer Default reset value of the counter Retain on reset Logic If True the value is saved to battery backed RAM Also disables default value setting Initial value Integer The initial value of the retained block after it gets uploaded to the device Remarks None 16 49 Trigger timing Up down counter Description Up down counter increments the c
54. trial robots 6 Measures such as fail safe function and redundant design should be taken to ensure reliability and safety when PoLabs devices are used for or in connection with equipment that requires higher reliability for example traffic control systems anti disaster systems anticrime systems safety equipment medical equipment not specifically designed for life support and other similar applications 7 PoLabs devices shall not be used for or in connection with equipment that requires an extremely high level of reliability and safety as for example aircraft systems aerospace equipment nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems and any other applications or purposes that pose a direct threat to human life 8 You should use the PoLabs products described in this document within the range specified by PoLabs especially with respect to the maximum rating operating supply voltage range and other product characteristics PoLabs shall have no liability for malfunctions or damages arising out of the use of PoLabs products beyond such specified ranges 9 Although PoLabs endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Further PoLabs products are not subject to radiation resistance design Please be
55. ty for damages or losses occurring as a result of your noncompliance with applicable laws and regulations 15 Please contact a PoLabs support at support poscope com if you have any questions regarding the information contained in this document or PoLabs products or if you have any other inquiries 16 The licensee agrees to allow access to this software only to persons who have been informed of and agree to abide by these conditions 17 Trademarks Windows is a registered trademark of Microsoft Corporation PoKeys PoKeys55 PoKeys56U PoKeys56E PoScope PoLabs and others are internationally registered trademarks www poscope com PoBlocks user manual March 31 2014 1 PoBlocks description PoBlocks is a graphical programming tool for PoKeys devices It features an intuitive and clean interface and enables the user to quickly and easily design deploy and debug a program that gets transferred and executed by the PoKeys device itself PoBlocks was developed with ease of use in mind which means that it does not require long manuals extended tutorials or deep knowledge to use Although PoBlocks is simple to use it also boasts a rich set of features support for PoKeys basic and extended I O interfaces support timers counters configurable clock sources algebra memory logic and non linear operations time schedule event drums even PID and on off controllers etc PoBlocks also features a simple to use monitor mode for debugging tha
Download Pdf Manuals
Related Search
Related Contents
G797 Revised Pumps and Primers - International Fire Training Centre Integral IN2T4GRWZEX2VP memory module Rosemount 644 Temperaturmessumformer mit 4–20 mA HART InLine 31540I Sikafloor-390 User Guide - Archives - The Apache Software Foundation! Copyright © All rights reserved.
Failed to retrieve file