background image

PAGE 4 

19 APR 2005 

MAN0790-01 

 

2.

 

Build Ladder Code

 

 

 

a.

  Write Ladder Code to support the register assignments described in Tables 1 and 2.   Example ladder 

code is located after the tables.   

 
 

Table 1 – Transfers From Master Control to PCU Unit

 

Network 

Variable 

Source 

ID 

Example OCS 

Register

 

NAME

 

MIN

 

MAX 

%AQG1 4 

%AI1 PRESSURE 

0 1250 

psi 

%AQG2 

%AI2 

FLOW RATE 

1250 gpm 

%AQG3 4 

%AI3 TEMPERATURE 

0 1250 

degrees 

%AQG4 4 

%AI4 LEVEL 

0 125 

feet 

 

Description 

%QG1 1 

%M1 

PRINT 

TREND  Momentary 

%QG2 1 

%M2 

CANCEL 

PRINT 

Momentary 

%QG3 

%M3 

STORE DATA 

Toggle - On state stores data 

%QG4 1 

%M4 

CLEAR 

DATA  Momentary 

%QG5 1 

%M5 

SCALE 

RANGE 

(Time) 

Toggle – On state =

  

0-25 minutes – samples every 
3 seconds. 

Off state =

  

0-25 hours – samples every 30 
seconds 

%AQG1 

%R1 

Customer name field 
length 

Number of charters in 
customer field 

%AQG2 

%R2 

Customer name field 

30 ASCII Characters max – 
(15 registers) 

%AQG1 

%R21 

Job number field 
length 

Number of characters in job 
number field 

%AQG2 

%R22 

Job number field 

30 ASCII Characters max – 
(15 registers) 

%AQG1 

%R41 

Purchase order field 
length 

Number of charters in 
Purchase order field 

%AQG2 

%R42 

Purchase order field 

30 ASCII Characters max – 
(15 registers) 

 
 

Table 2 – Transfers From PCU unit to Master Control Unit (OCS) 

Network 

Variable 

Source 

ID 

Example OCS 

Register

 

NAME

 

MIN

 

MAX 

%AQG1 

10 *  

%R61 

Print status bar 

100 % 

*  Default PCU Network ID  

 

Содержание HE800PCU100

Страница 1: ...face using pre programmed controls Connects to any Hewlett Packard printer with IEEE 1284 parallel port and that uses PCL3 such as HP Deskjet 5650 Provides customized reports such as alarm or industry specific reports available for additional cost by contacting Horner Sales staff An example of a data trend report is on the last page of this document 2 Configuration Overview 2 1 Brief Summary of St...

Страница 2: ...nd that uses PCL3 or greater Note Our example uses one PCU but multiple PCUs can be connected to the CsCAN network Figure 1 PCU Setup in a CsCAN Network 2 3 Interface Configuration Software Cscape software is used to interface the PCU to the OCS over a CsCAN network 2 4 Ladder Programming You need to build a ladder program subroutine or sequence that uses NETPUT and NETGET to configure and control...

Страница 3: ...ter OCS The default screen appears b At the top of the menu bar click on the Program tab c Select Network Config from the pull down menu d Click the Option tab The following Network Configuration screen appears Figure 2 Network Configuration Screen e Click the Network Required box to the other network options f Click the Network Optimized box to speed network transfers g Fill in the Number of Netw...

Страница 4: ...CLEAR DATA Momentary QG5 1 M5 SCALE RANGE Time Toggle On state 0 25 minutes samples every 3 seconds Off state 0 25 hours samples every 30 seconds AQG1 1 R1 Customer name field length Number of charters in customer field AQG2 1 R2 Customer name field 30 ASCII Characters max 15 registers AQG1 2 R21 Job number field length Number of characters in job number field AQG2 2 R22 Job number field 30 ASCII ...

Страница 5: ...through the code and relate it back to the register assignments in the Tables 1 and 2 Note For all ladder code examples the Master OCS uses ID 1 through 4 The PCU uses default ID 10 You need to build a ladder program subroutine or sequence that uses NETPUT and NETGET to configure and control the PCU Examples of ladder code programs are shown in Figures 3 6 Figure 3 Example Ladder Code HeartBeat ...

Страница 6: ...PAGE 6 19 APR 2005 MAN0790 01 Figure 4 Example Ladder Code Command Controls and Customer Name Fields Figure 5 Example Ladder Code Job Number and Purchase Order Fields ...

Страница 7: ...h M4 to zero This references interface controls Print Trend Cancel Print Store Data Clear Data 3 Set M5 as desired for the sample rate This references the Scale Range which indicates the time interval that each sample occurs 4 Enter the customer name job number and purchase order information including their respective lengths in R1 through R60 5 Set M3 Store Data to 1 to enable data capture Allow ...

Страница 8: ... personal protective equipment including safety glasses and insulated gloves when making connections to power circuits Ensure hands shoes and floor are dry before making any connection to a power line Make sure the unit is turned OFF before making connection to terminals Make sure all circuits are de energized before making connections Before each use inspect all cables for breaks or cracks in the...

Страница 9: ...e OCS OCX e g OCS1XX 2XX Graphic OCS250 Remote Control Station Hardware RCS except RCS116 RCX e g RCS210 RCS250 MAN0227 Color Touch OCS Hardware e g OCS300 OCS301 OCS350 OCS351 e g OCS451 OCS551 OCS651 MAN0465 OCS LX Series Hardware e g LX280 LX300 RCS116 MAN0755 MiniOCS MiniRCS MiniOCX MiniRCX Hardware e g HE500OCSxxx MAN0305 Other Useful References Cscape Programming and Reference MAN0313 Device...

Страница 10: ...PAGE 10 19 APR 2005 MAN0790 01 NOTES ...

Отзывы: