Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

AC450 Testing Create PC Program and download to

AC450
1) Open Function Chart Builder, click on PC section and click NEW.

Figure 1: Function Chart Builder (FCB)

2) Key in PC1 and click ok

Figure 2: New PC Program


3) Select PCPGM and click Call Parameter to set the cyclic time to 10ms. Click Ok x 2 to create the
PC program. Double click on PCPGM terminal 1 and set to 1 and Terminal 2 set to 0.

Figure 3: Create Element

Figure 4: Edit Call Parameter


Figure 5: New PC Program Created

4) Go to Edit menu and select Create.

Figure 6: FCB (Create)


5) Select CONTRM (Control module Header) and click Call Parameter. Set Cyclic time to 100ms.
Click ok x2 to create the Control Module Header. Double click on CONTRM terminal 1 and set to
1, terminal 2 set to 1 and terminal 3 set to 0.

Figure 7: Create Control Module Header

Figure 8: Control Module Cyclic Time setting


Figure 9: Created Control Module Header

6) Click on CONTRM block and Follow step 4 to select create. Select move and click on parameter
to set the number of Input/output to 8. Click OK x2 to create the Move Block. Double click the
Move block terminal 1-8 to assign the input and 21-28 to assign output. Double click on Move
block terminal 1 and click DB to select the Data Base Input DI800_1.1 and click OK. Same for
terminal 21, click on DB and select Data Base Output DO800_1.1. Follow the same for the rest
for DI800_1.2 to DI800_1.8 and DO800_1.2 to DO800_1.8 for terminal 2 to 8 and terminal 22 to
28.
Figure 10: Create Move Block

Figure 11: Set Move Block Number of Input/Output


Figure 12: Created Move Block

Figure 13: Connect Move Block Terminal 1


Figure 14: Connect Move Block Terminal 1 (Digital Input)

Figure 15: Connect Move Block Terminal 21


Figure 16: Connect Move Block Terminal 1 (Digital Output)

Figure 17: Move Block with I/O Assigned

7) Save the PC Program and goto file\Generate source. Uncheck DB source and click ok to generate
the PC source.
Figure 18: Generate PC Source

Figure 19: PC Source Successfully Generated

8) Close the Function Chart Builder and go to Application Builder File\Convert. Select PC source
Code (*.AAX) from left and convert to right PC Source Code (*.AA).
Figure 20: Application builder\ convert

Figure 21: PC Source code convert


Figure 22: Default Folder for Converted PC Source Code (*.AA)

9) Open On-Line Builder and use command TRPCS srce:Test0101 to translate the PC source code to
controller.
Note: To Translate all the PC source code in the SRCE: Folder, use command #TRPCS SRCE:
Figure 23: TRPCS Command

Figure 24: PC Source Code Successfully Translated


Figure 25: TRPCS Command for all PC Source in SRCE folder

10) Use LS command to check the PC1 is available in Controller.


Figure 26: LS Command

11) Use command LSS to check the PC1 Special Status. The PC1 is in Build Mode after first Translate
from source code. Use DIBM PC1 to disable the PC1 build Mode and DBL PC1 to Deblock PC1
program. Only After DIBM and DBL the PC1 program then it is ready to use.

Figure 27: LSS command to Check PC1 Status


Figure 28: After DIBM (Disable Build Mode) and DBL (Deblock)

12) Testing Done.

You might also like