02.06.2013 Views

SINUMERIK 840D/810D ShopMill

SINUMERIK 840D/810D ShopMill

SINUMERIK 840D/810D ShopMill

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4PLCProgram<br />

4.2 Example for OB1 and OB100<br />

OB100<br />

example<br />

4-38<br />

ORGANIZATION_BLOCK OB100<br />

VERSION: 5.2<br />

VAR_TEMP<br />

OB100_EV_CLASS: BYTE;<br />

OB100_STRTUP: BYTE;<br />

OB100_PRIORITY: BYTE;<br />

OB100_OB_NUMBR: BYTE;<br />

OB100_RESERVED_1: BYTE;<br />

OB100_RESERVED_2: BYTE;<br />

OB100_STOP: WORD;<br />

OB100_RESERVED_3: WORD;<br />

OB100_RESERVED_4: WORD;<br />

OB100_DATE_TIME: DATE_AND_TIME;<br />

END_VAR<br />

BEGIN<br />

//Tool Management System<br />

CALL FC100( RealMagLoc :=30);<br />

//Number of locations in real magazine<br />

//<br />

//Basic program<br />

CALL FB1 , DB7(<br />

MCPNum :=1,<br />

MCP1In :=P#E0.0,<br />

MCP1Out :=P#A0.0,<br />

MCP1StatSend :=P#A8.0<br />

MCP1StatRec :=P#A12.0,<br />

MCP1BusAdr :=14,<br />

MCP1Timeout :=S5T#700MS,<br />

MCP1Cycl :=S5T#200MS,<br />

MCPMPI :=TRUE,<br />

NCCyclTimeout :=S5T#200MS,<br />

NCRunupTimeout :=S5T#50S,<br />

NCKomm :=TRUE);<br />

// INSERT USER PROGRAM HERE<br />

//Insert user program from here<br />

END_ORGANIZATION_BLOCK<br />

Note<br />

The OB100 example applies to the <strong>SINUMERIK</strong> <strong>810D</strong>. On the <strong>SINUMERIK</strong><br />

<strong>840D</strong>, the value of MCP1BusAdr:=6 and MCPMPI: is FALSE.<br />

12.01<br />

E Siemens AG, 2001. All rights reserved<br />

<strong>SINUMERIK</strong> <strong>840D</strong>/<strong>810D</strong> Description of Functions <strong>ShopMill</strong> (FBSP) - 12.01 Edition

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

Saved successfully!

Ooh no, something went wrong!