PC Control / Profi Control 645-12M Instruction Manual pdf - Kuhnke

PC Control / Profi Control 645-12M Instruction Manual pdf - Kuhnke PC Control / Profi Control 645-12M Instruction Manual pdf - Kuhnke

28.03.2014 Views

4.9.2. Controlling and monitoring DP slaves PROFIBUS-DP provides the master (clas 1) with control and monitoring services to access the DP slaves in the network. These services are stored in the monitor program of PC Control 645-12M from where they can be loaded by the user program by means of special KUBES module called DP_CTRL. 4.9.2.1. Available services Control services -- Service 7, Activate/Deactivate activates and deactivates DP slaves -- Service 5, Freeze/Unfreeze freezes and unfreezes decentralised input values of groups of devices -- Service 6, Sync/Unsync synchronises decentralised outputs of groups of devices -- Service 8, Set_Prm changes the slave parameter settings Monitoring service -- Service 9, Get_Diag reads the diagnostic information of DP slaves 4 - 48

PC Control 645-12M on PROFIBUS 4.9.2.2. Functional principle of KUBES module DP_CTRL Byte 0 Job The name of the KUBES module is "DP_CTRL". It is contained in module library "KULIB64M.LIB" which is delivered with KUBES, version 5.20 or higher. Parameter field When you load DP_CTRL you specify the first address of a parameter field as the module's start parameter. Make sure that this parameter field is located in the byte operand range. Its length depends on the type of service and, for services 8 and 9, on the DP slave's data structure. If you define a separate parameter field for every service, the DP master can control several services at the same time. Repeat service requests that the KUBES module does not respond to (active bit = 0). If you define one parameter field for all services you can only request one service at a time. The first bytes of the parameter field have the same structure for every service; service-related information starts in byte 3: Descriptio n B it 0...5 No. of service (see "4.9.2.1. Available services" ) Bit 6 0: Job not active action bit 1: Job active Bit 7 error bit 0: No error 1 : Error (see byte 1, error number) 1 Error # Number of error indicated by bit 7 2 Station # DP slave's PROFIBUS station address 3...n D ata Service-related data (see description of services) 4 - 49

<strong>PC</strong> <strong>Control</strong> <strong>645</strong>-<strong>12M</strong> on PROFIBUS<br />

4.9.2.2. Functional principle of KUBES module DP_CTRL<br />

Byte<br />

0 Job<br />

The name of the KUBES module is "DP_CTRL". It is contained<br />

in module library "KULIB64M.LIB" which is delivered<br />

with KUBES, version 5.20 or higher.<br />

Parameter field<br />

When you load DP_CTRL you specify the first address of a<br />

parameter field as the module's start parameter. Make<br />

sure that this parameter field is located in the byte<br />

operand range. Its length depends on the type of service<br />

and, for services 8 and 9, on the DP slave's data<br />

structure. If you define a separate parameter field for<br />

every service, the DP master can control several services<br />

at the same time. Repeat service requests that the KUBES<br />

module does not respond to (active bit = 0). If you define<br />

one parameter field for all services you can only request<br />

one service at a time.<br />

The first bytes of the parameter field have the same structure<br />

for every service; service-related information starts in<br />

byte 3:<br />

Descriptio n<br />

B it 0...5 No. of service (see "4.9.2.1. Available services" )<br />

Bit 6 0:<br />

Job not active<br />

action<br />

bit 1:<br />

Job active<br />

Bit 7<br />

error bit<br />

0:<br />

No error<br />

1 : Error (see byte 1, error number)<br />

1 Error<br />

# Number of error indicated by bit 7<br />

2 Station<br />

#<br />

DP slave's PROFIBUS station address<br />

3...n<br />

D ata<br />

Service-related data (see description of services)<br />

4 - 49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!