The ADAM- 5000 Distributed I/O Systems from Advantech are...

Preview:

Citation preview

WebAccess Training Material Block

Version 7.0 rev 0a Advantech Corp., Ltd. page 1

Block

WebAccess Monitors and Controls BAS DDCPID Function Block

WebAccess Training Material Block

Version 7.0 rev 0a Advantech Corp., Ltd. page 2

1. Here we will use BASPro PID1 function block as an example.

2. Based on BASPro Help, PID1 parameters already assigned the Modbus Address.

Note: R/L, A/M and Action are bundled together.

WebAccess Training Material Block

Version 7.0 rev 0a Advantech Corp., Ltd. page 3

3. Login WebAccess Project Manager. First thing we have to do is to create a block

for PID. Please click “Modicon” in the left hand side.

4. Now, we are going to create parameters for PID.

Based on BASPro PID1 function block, there are total 11 parameters. There 11

parameters are PV, LSP, RSP, R/L, A/M, Action, P, I, D, MOP and Out.

Click “Add Parameter” to start create parameters.

WebAccess Training Material Block

Version 7.0 rev 0a Advantech Corp., Ltd. page 4

5. Create the PV:

Parameter name: PV

Address: 40801

Conservision Code: IEEE, Reversed Word

Length: 32

WebAccess Training Material Block

Version 7.0 rev 0a Advantech Corp., Ltd. page 5

6. R/L, A/M and action are special one.

R/L setup:

Address: 40807; conversion Code: Unsigned Integer

Start bit: 0; Length: 1

Note: Unsigned Integer has 16 bits. We starts to read from right bit (0000 0000

0000 0000) and only read 1 bit

7. AM setup:

Address: 40807; conversion Code: Unsigned Integer

Start bit: 1; Length: 1

Note: Unsigned Integer has 16 bits. We starts to read from right shift left 1bit

(0000 0000 0000 0000) and only read 1 bit.

WebAccess Training Material Block

Version 7.0 rev 0a Advantech Corp., Ltd. page 6

8. Action setup:

Address: 40807; conversion Code: Unsigned Integer

Start bit: 2; Length: 1

Note: Unsigned Integer has 16 bits. We starts to read from right shift left 1bit

(0000 0000 0000 0000) and only read 1 bit.

9. Let’s back to the Modicon (left hand side), and we then click “Add Block Type”

WebAccess Training Material Block

Version 7.0 rev 0a Advantech Corp., Ltd. page 7

10. Enter “PID” in Name and select all 11 PID parameters.

Clicking “Submit” button after all 11 PID parameters are added.

WebAccess Training Material Block

Version 7.0 rev 0a Advantech Corp., Ltd. page 8

11. “PID” will appears in “Block Type”

Clicking “Update” to double check the setup.

12. This is how PID block looks like.

WebAccess Training Material Block

Version 7.0 rev 0a Advantech Corp., Ltd. page 9

13. Now create the Project Node, SCADA Node, Communication Port and Device

Type. The following print screen image is Device Type. In Device Type, click

“Add Block” to create PID Block.

WebAccess Training Material Block

Version 7.0 rev 0a Advantech Corp., Ltd. page 10

14. Select “PID” in Block Type.

Enter Block name (I use “PID” as Block name).

Offset is based on BASPro PID1 function block MBAddr setup. If we check the

step 1 print screen image, its MBAddr is 40801.

15. The following image is how PID block looks like.

WebAccess Training Material Block

Version 7.0 rev 0a Advantech Corp., Ltd. page 11

16. Use DrawDAQ to create the GUI (Graphic User Interface)

WebAccess Training Material Block

Version 7.0 rev 0a Advantech Corp., Ltd. page 12

17. result

Recommended